lkml.org 
[lkml]   [1999]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Porting vfork()
> I think you can fix it in libc. Make vfork() do a clone with CLONE_VM and
> leave a small gap in the stack for the parent to use.
>
> In the client we run as before. The parent waits on a pthread mutex of some
> sort which libc can clean up on exit, or exec (I belive those are the right
> cases ?). I guess it needs to block all signals too.

What's wrong with blocking all the signals and using good old `waitpid'?
(With EINTR retry loop)

-- Jamie

-
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:49    [W:0.040 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site