aboutsummaryrefslogtreecommitdiff
path: root/coreutils/shuf.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-10-11 15:58:14 +0100
committerRon Yorston <rmy@pobox.com>2024-10-11 16:24:48 +0100
commit4bdeee55c1c2a456cae12abdff775fc60903bd6f (patch)
tree81e575aa73c7059cb673f52716284692ada2974c /coreutils/shuf.c
parentf84964d647e3a58905f5692dfdb9319dc170bb88 (diff)
downloadbusybox-w32-4bdeee55c1c2a456cae12abdff775fc60903bd6f.tar.gz
busybox-w32-4bdeee55c1c2a456cae12abdff775fc60903bd6f.tar.bz2
busybox-w32-4bdeee55c1c2a456cae12abdff775fc60903bd6f.zip
win32: fix problem interrupting shell loop
It proved to be almost impossible to interrupt a loop like: while true; do sleep 1; done where 'sleep' was an external program, not an applet. The issue was introduced by commit 0475b7a64 (win32: convert exit codes). This passed a POSIX error code to the exit() in wait_for_child() so a parent was unable to detect when its child was interrupted. Pass the Windows exit code to exit() instead. Work around the changes introduced by commit 790e377273 (win32: revert 'don't set error mode'). Adds 16-32 bytes.
Diffstat (limited to 'coreutils/shuf.c')
0 files changed, 0 insertions, 0 deletions