[PATCH] fix posix/tst-spawn test

Szabolcs Nagy szabolcs.nagy@arm.com
Wed Sep 27 14:53:00 GMT 2017


On 27/09/17 15:45, Florian Weimer wrote:
> 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.
> 

why does that matter?
(attached the updated patch)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: spwn.diff
Type: text/x-patch
Size: 1190 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170927/9dcb7213/attachment.bin>


More information about the Libc-alpha mailing list