Messages in this thread | | | Date | Tue, 28 Mar 2000 12:17:35 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: Slow pthread_create() under high load |
| |
On Tue, 28 Mar 2000, Richard Gooch wrote: > > You would need to wrap up fork(2) as well, to clear the cached value > for the child.
Yes, the child has to clear the value after a fork().
> And what about getppid(2)? This one is tricky, because it can actually > change.
getppid() should be already handled correctly by the CLONE_PARENT thing, so that shouldn't need any special attention.
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/
| |