Re: proc fs and shared pids

David Schwartz (davids@wiznet.net)
Mon, 5 Aug 1996 12:09:28 -0400 (EDT)


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?

DS

> 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