lkml.org 
[lkml]   [1997]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Killing clones

On Sun, 10 Aug 1997, Richard Gooch wrote:

> Hi, all. I make heavy use of the clone syscall in a number of
> applications, and everything works well except when the parent process
> dies (say from a SEGV or a call to abort). The problem is the cloned
> processes hang around until I manually kill them. I note that there
> seems to be a mechanism to choose which signal is sent to the parent
> if a child dies (CSIGNAL mask), but not the other way around.
> Is there a solution to this problem? I tried cloning the PID but that
> stuffs up sending signals to the clones.

LinuxThreads uses a 'manager thread' (which is not the main thread) that
can do exactly this kind of cleanup stuff.

the real solution will be Posix.1b RT signal handling ...

-- mingo


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.104 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site