diff options
author | Ron Yorston <rmy@pobox.com> | 2023-04-05 09:32:42 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-04-05 09:32:42 +0100 |
commit | 9db9b34adaad1a9ebe892eaea486cfe0610bad8d (patch) | |
tree | ae7b191ef7421c861ce1ee96e2564f6ba3283c8b /init | |
parent | d4494ebdeb3340f98a7a79244601b5d574ae36d1 (diff) | |
download | busybox-w32-9db9b34adaad1a9ebe892eaea486cfe0610bad8d.tar.gz busybox-w32-9db9b34adaad1a9ebe892eaea486cfe0610bad8d.tar.bz2 busybox-w32-9db9b34adaad1a9ebe892eaea486cfe0610bad8d.zip |
win32: ignore ctrl-c in parent of execve(2)
The execve(2) system call is emulated for Microsoft Windows. This
requires the creation of a new process. The old process remains
active, waiting for the "execed" child to exit so it can pass on
its exit status.
Previously this was achieved using P_WAIT mode in the call to
spawnve(). However the parent of the execve(2) process may still
be able to catch Ctrl-C interrupts. This can lead to unwanted
behaviour, such as a shell and its children competing for input.
Force the waiting process to ignore Ctrl-C interrupts.
Costs 64-80 bytes.
(GitHub issue #303)
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions