This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH] fix posix/tst-spawn test


On 09/27/2017 04:40 PM, Szabolcs Nagy wrote:
The test spawns two children but only waited for one.
The fix avoids printing to stderr.

2017-09-27  Szabolcs Nagy<szabolcs.nagy@arm.com>

	* posix/tst-spawn.c (do_test): Wait for both children.

Sorry, one more thing: I think you should not interleave the spawns and waits. I think you can do a -1 wait after the PID wait, and the test will still pass. This should be closer to the original test.

Thanks,
Florian


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