On Tue, 23 Mar 2004, Peter Lindeman wrote:

> Davide Libenzi wrote:
> 
> >>lindeman.nl now too ;-) If I notice something strange I let you know
> > 
> > 
> > I wouldn't want to speak too soon, but the fixed problem was a bitchy 
> > interaction between pthread and fork. You have to be sure to only use 
> > async-signal-safe functions from inside the forked process. The reason for 
> > such radical changed in SysExec() was to simplify the system dependent 
> > code by removing the assembly code that was previously present.
> 
> What exactly do you mean by only using async-signal-safe functions?

See here:

http://www.opengroup.org/onlinepubs/007904975/functions/fork.html
http://www.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_04.html

Basically, in a multithreaded program doing a fork, only a given set of 
functions can be used in the forked child (typically before the exec).



- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to