lkml.org 
[lkml]   [1999]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-kernel-digest V1 #4149
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/

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