Non-Child Process Exit Notification Support

Posted by bob on Jan 13, 2019 6:14 AM EDT
Linux Journal; By Zack Brown
Mail this story
Print this story

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

  Nav
» Read more about: Story Type: Editorial; Groups: Android, Community, Kernel, Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.