Messages in this thread | | | Date | Fri, 8 Jan 1999 13:09:46 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: Porting vfork() |
| |
On Fri, 8 Jan 1999, Perry Harrington wrote: > > > > Hmm... I do wonder about what happens to signals while vfork() is blocking > > the parent, though. Ick. The parent invoking signal handlers isn't much > > better then the child invoking signal handlers. One longjmp(), and > > everything gets confused. Temporarily block all signals to the parent but > > SIGKILL? Perhaps the only solution. And how does the child cleanly release > > the wait_queue in its parent if its parent may have been killed in the > > meantime? > > That's a good question, do you want to temporarily block signals to the parent?
No need to. If you use sleep_on(), the parent won't be getting any signals anyway (only sleep_on_interruptible() cares about signals).
Linus
- 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/
| |