This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA[testsuite]: Fork event updates, part the fourteenth
- From: Fernando Nasser <fnasser at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 22 Dec 2002 06:37:18 -0500
- Subject: Re: RFA[testsuite]: Fork event updates, part the fourteenth
- Organization: Red Hat Canada
- References: <20021215214426.GA5940@nevyn.them.org>
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