diff options
author | Denys Vlasenko | 2010-09-14 12:57:05 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-09-14 12:57:05 +0200 |
commit | 197a6b3c14a8be7101903118516e0e16ec843eb5 (patch) | |
tree | ac97460846ca5f1677bd5e011c515637e593c317 /include | |
parent | 0eac8ff1648f94a79a0e21731ec993dd73d946db (diff) | |
download | busybox-197a6b3c14a8be7101903118516e0e16ec843eb5.zip busybox-197a6b3c14a8be7101903118516e0e16ec843eb5.tar.gz |
sleep: make it non-NOFORK. Fixes ^C in standalone shell
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.src.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/applets.src.h b/include/applets.src.h index 0e4f966..106b720 100644 --- a/include/applets.src.h +++ b/include/applets.src.h @@ -345,7 +345,8 @@ IF_SHA256SUM(APPLET_ODDNAME(sha256sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_D IF_SHA512SUM(APPLET_ODDNAME(sha512sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha512sum)) IF_SHOWKEY(APPLET(showkey, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_SLATTACH(APPLET(slattach, _BB_DIR_SBIN, _BB_SUID_DROP)) -IF_SLEEP(APPLET_NOFORK(sleep, sleep, _BB_DIR_BIN, _BB_SUID_DROP, sleep)) +/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */ +IF_SLEEP(APPLET(sleep, _BB_DIR_BIN, _BB_SUID_DROP)) IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, _BB_DIR_USR_BIN, _BB_SUID_DROP, softlimit)) IF_SORT(APPLET_NOEXEC(sort, sort, _BB_DIR_USR_BIN, _BB_SUID_DROP, sort)) IF_SPLIT(APPLET(split, _BB_DIR_USR_BIN, _BB_SUID_DROP)) @@ -358,7 +359,7 @@ IF_SULOGIN(APPLET(sulogin, _BB_DIR_SBIN, _BB_SUID_DROP)) IF_SUM(APPLET(sum, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_SV(APPLET(sv, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_SVLOGD(APPLET(svlogd, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) -IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, _BB_DIR_SBIN, _BB_SUID_DROP,swapoff)) +IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, _BB_DIR_SBIN, _BB_SUID_DROP, swapoff)) IF_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, _BB_DIR_SBIN, _BB_SUID_DROP, swapon)) IF_SWITCH_ROOT(APPLET(switch_root, _BB_DIR_SBIN, _BB_SUID_DROP)) IF_SYNC(APPLET_NOFORK(sync, sync, _BB_DIR_BIN, _BB_SUID_DROP, sync)) |