This is the mail archive of the gdb-patches@sources.redhat.com 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[testsuite]: Fork event updates, part the fourteenth


If the fix goes in, the testsuite part is approved.
(otherwise you would have to KFAIL it).

Thanks.
Fernando

Daniel Jacobowitz wrote:
This is a test for the bug I described in my previous message. If we run a
program; detach from it; it exits; and we run it again, wait() returns the
exit status of the dead detached child, and we report the current process
as having exited. Oops!

I'm only running the test on GNU/Linux because it won't work anywhere else. There's a comment above detach() which says that the odds of it working on
something we didn't attach to are slim, and I know that the only wait
methods I fixed to support this are for GNU/Linux. Is this a desirable
feature in general? If so I should probably file a PR to implement/test it
everywhere.

Is the new test OK?


--
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


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