Re: linux-kernel-digest V1 #4149

yodaiken@chelm.cs.nmt.edu
Fri, 16 Jul 1999 07:20:11 -0600


On Fri, Jul 16, 1999 at 09:08:51AM -0500, cd_smith@ou.edu wrote:
> On Fri, 16 Jul 1999 yodaiken@chelm.cs.nmt.edu wrote:
> > Why ? Threads are cheap. I thought that was the point.
>
> Yes, threads are cheap, but you simply won't be able to get the pid of
> "the process" to be anything other than the main thread... and the main
> thread is doing actual work.

Isn't most of the problem caused by inability to wait for other processes?
How about
fd = open("/proc/process_id/exit",O_RD)
read(fd,&status,n)

returns when the process exits.

Then all you need is a signal manager for a collection of processes.

>
> Chris Smith <cd_smith@ou.edu>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/