|
From: Tom H. <th...@cy...> - 2003-10-22 07:58:20
|
In message <106...@ix...>
Jeremy Fitzhardinge <je...@go...> wrote:
> On Tue, 2003-10-21 at 04:57, Tom Hughes wrote:
>
> > 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.
>
> Hm, yes, you shouldn't be seeing that. Can you send me your code (or
> ideally, carve out a minimal piece which shows the problem)?
My test program was attached to one of the earlier messages, but I'm
attaching it again here because they've been turning up rather out of
order...
> Which kernel are you using again?
RedHat 9, so 2.4.20 with various extra patches.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|