This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] gdbserver, errno handling in my_waitpid


On Wednesday 10 March 2010 21:24:57, Michael Snyder wrote:
> This is not really my most familiar bit of the code, so
> you gdbserver guys check me, ok?
> 
> It seems to me that we need to set errno to zero before calling waitpid,
> if we're going to check it right after.  Especially the second time.

I don't think do; we only check it if waitpid returns -1, and
in that case, waitpid should have changed errno itself.  Or
have you found an actual problem here?

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]