From: Isaac W. <is...@tr...> - 2006-05-17 17:45:38
Attachments:
fork07.patch
|
Hi, Tiny patch attached to make the output of fork07 deterministic. Specifically, make sure stdout is flushed before forking 100 times, else you can get 101 copies of the output. This only seems to happen if glibc notices that stdout is a regular file, but in my test setup stdout is always redirected to a file and compared with something. Cheers, Zak (Isaac Wilcox) |
From: Mike F. <va...@ge...> - 2006-05-26 05:28:13
|
On Wednesday 17 May 2006 13:45, Isaac Wilcox wrote: > Tiny patch attached to make the output of fork07 deterministic. =A0 > Specifically, make sure stdout is flushed before forking 100 times, > else you can get 101 copies of the output. =A0This only seems to happen > if glibc notices that stdout is a regular file, but in my test setup > stdout is always redirected to a file and compared with something. thanks, merged =2Dmike |