[lkml]   [1996]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: proc fs and shared pids

The only thing is that this makes signal handling bizarre.
Suppose I have one thread that waits for a SIGHUP and controls the
shutdown. How do I get the rest of the world (consider 'init' for
example) to send the SIGHUP to the correct thread?

How will getppid work under this scheme? What will happen if the
thread that created a particular thread dies? Do you send a SIGCHILD? Who
reaps threads return values?


> Allowing user mode threads to share pids is probably a mistake. For the
> purpose of process control, it probably makes more sense to regard them as
> special cases of processes, i.e., processes with shared memory.
> Let's not make life any more complicated than it has to be....
> lilo

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