|
From: Tom H. <th...@cy...> - 2003-10-21 15:31:41
|
In message <yek...@au...>
Tom Hughes <th...@cy...> wrote:
> My real problem seems to be that the waitpid is sometimes returning a
> nonsense error of -512 at the system call level. I've written a little
> test program, which is attached, and when it is run under valgrind
> this is what I see:
So the -512 is actually ERESTARTSYS but that shouldn't be making it
back to my program - either the system call should be restarted for me
or I should get EINTR back.
Bizarrely if I install a signal handler for SIGCHLD then although
valgrind still shows ERESTARTSYS as the result of the wait4 system
call the waitpid library routine gives me a zero result, without it
having restarted the system call.
Without the signal handler I get ERESTARTSYS back from the waitpid
library routine.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|