Non-Child Process Exit Notification Support
Daniel Colascione submitted some code to support processes knowing when
others have terminated. Normally a process can tell when its own child
processes have ended, but not unrelated processes, or at least not
trivially. Daniel's patch created a new file in the /proc directory entry
for each process—a file called "exithand" that is readable by any other
process. If the target process is still running, attempts to
read() its
exithand file will simply block, forcing the querying process to wait.
When the target process ends, the read() operation will complete, and the
querying process will thereby know that the target process has ended.
|
|
Full Story |
This topic does not have any threads posted yet!
You cannot post until you login.