File descriptor number disagreement
nick at sqrt.co.uk
Wed Jun 8 11:19:34 PDT 2005
Peter Naulls wrote:
> Whilst we're on the issue of redirection, there's some respawn thing in
> Firefox (I don't know what the exact mechanism is) that occurs on an
> upgrade, or initial run. What ends up happening is that stderr/stdout
> redirection isn't propogated, and they end up blatting the screen. And
> suggestions where I ought to be looking?
Check that the execve function and in particular the use of the CLOEXEC
flag. It might be that these file descriptors are being closed and not
propogated correctly to the child process.
More information about the gcc