Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.


  Search this Thread
Old 01-13-2019, 05:15 AM   #1
LXer NewsBot
Registered: Dec 2005
Posts: 102,223

Rep: Reputation: 117Reputation: 117
LXer: Non-Child Process Exit Notification Support

Published at LXer:

Daniel Colascione submitted some code to support processes knowing whenothers have terminated. Normally a process can tell when its own childprocesses have ended, but not unrelated processes, or at least nottrivially. Daniel's patch created a new file in the /proc directory entryfor each process—a file called "exithand" that is readable by any otherprocess. If the target process is still running, attempts toread() itsexithand file will simply block, forcing the querying process to wait.When the target process ends, the read() operation will complete, and thequerying process will thereby know that the target process has ended.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fork child, send signal, kill child process. Need help aceLime Linux - Newbie 1 12-12-2018 08:04 AM
Difference between Child THREAD and Child PROCESS whho Linux - Newbie 12 02-16-2015 01:22 AM
Under which circumstances a child process creates another child process using fork? mitsulas Programming 3 12-08-2009 09:16 AM
How to kill a Child and all its subsequent child process in C shayer009 Programming 3 12-04-2007 01:40 AM
Killing a child process from another child marri Programming 6 10-01-2004 08:08 PM > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration