Child may see close() result before it receives signal,
while it shouldn't see it. Instead of games with later
close(), just stop do it. sys_exit() after program finish
will close them all.
Reported-by: Andrey Vagin <[email protected]>
Signed-off-by: Kirill Tkhai <[email protected]>
Signed-off-by: Andrei Vagin <[email protected]>