Add commentary to say they are closed on receipt of SIGCHLD.
return pid;
}
-
#ifdef PLUGIN_DEV
/* If we are not the root process, stop listening to devices. */
if (ctx->ps_root != psp)
err = -1;
}
#endif
- psp->psp_fd = -1;
}
/* Don't wait for the process as it may not respond to the shutdown
- * request. We'll reap the process on receipt of SIGCHLD. */
+ * request. We'll reap the process on receipt of SIGCHLD where we
+ * also close the fd. */
return err;
}