Language Selection

English French German Italian Portuguese Spanish

Non-Child Process Exit Notification Support

Filed under
Development
Linux

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.

It may not be immediately obvious why such a thing would be useful. After all, non-child processes are by definition unrelated. Why would the kernel want to support them keeping tabs on each other?

Read more

More in Tux Machines

Type Title Author Replies Last Postsort icon
Story Android Leftovers Rianne Schestowitz 14/10/2019 - 8:59am
Story SUSE drops OpenStack Cloud Rianne Schestowitz 9 14/10/2019 - 8:31am
Story Android Leftovers Rianne Schestowitz 14/10/2019 - 8:02am
Story My Linux story: I grew up on PC Magazine not candy Rianne Schestowitz 14/10/2019 - 7:33am
Story How to Create Persistent Fedora LIVE USB From Ubuntu arindam1989 14/10/2019 - 7:33am
Story Android Leftovers Rianne Schestowitz 14/10/2019 - 7:23am
Story FSF and GNU Rianne Schestowitz 24 14/10/2019 - 7:15am
Story Python Programming Leftovers Rianne Schestowitz 14/10/2019 - 7:02am
Story Audiocasts/Shows/Screencasts: Open Source Security Podcast, Linux Action News and Manjaro 19.09.28 KDE-DEV Run Through Rianne Schestowitz 14/10/2019 - 6:50am
Story Apple of 2019 is the Linux of 2000 Rianne Schestowitz 14/10/2019 - 6:39am