aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-09-14 12:57:05 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-09-14 12:57:05 +0200
commit197a6b3c14a8be7101903118516e0e16ec843eb5 (patch)
treeac97460846ca5f1677bd5e011c515637e593c317
parent0eac8ff1648f94a79a0e21731ec993dd73d946db (diff)
downloadbusybox-w32-197a6b3c14a8be7101903118516e0e16ec843eb5.tar.gz
busybox-w32-197a6b3c14a8be7101903118516e0e16ec843eb5.tar.bz2
busybox-w32-197a6b3c14a8be7101903118516e0e16ec843eb5.zip
sleep: make it non-NOFORK. Fixes ^C in standalone shell
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r--coreutils/sleep.c2
-rw-r--r--include/applets.src.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index b983df47e..12798d9a7 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -20,7 +20,7 @@
20 20
21#include "libbb.h" 21#include "libbb.h"
22 22
23/* This is a NOFORK applet. Be very careful! */ 23/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */
24 24
25 25
26#if ENABLE_FEATURE_FANCY_SLEEP || ENABLE_FEATURE_FLOAT_SLEEP 26#if ENABLE_FEATURE_FANCY_SLEEP || ENABLE_FEATURE_FLOAT_SLEEP
diff --git a/include/applets.src.h b/include/applets.src.h
index 0e4f966de..106b72077 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
345IF_SHA512SUM(APPLET_ODDNAME(sha512sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha512sum)) 345IF_SHA512SUM(APPLET_ODDNAME(sha512sum, md5_sha1_sum, _BB_DIR_USR_BIN, _BB_SUID_DROP, sha512sum))
346IF_SHOWKEY(APPLET(showkey, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 346IF_SHOWKEY(APPLET(showkey, _BB_DIR_USR_BIN, _BB_SUID_DROP))
347IF_SLATTACH(APPLET(slattach, _BB_DIR_SBIN, _BB_SUID_DROP)) 347IF_SLATTACH(APPLET(slattach, _BB_DIR_SBIN, _BB_SUID_DROP))
348IF_SLEEP(APPLET_NOFORK(sleep, sleep, _BB_DIR_BIN, _BB_SUID_DROP, sleep)) 348/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells */
349IF_SLEEP(APPLET(sleep, _BB_DIR_BIN, _BB_SUID_DROP))
349IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, _BB_DIR_USR_BIN, _BB_SUID_DROP, softlimit)) 350IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, _BB_DIR_USR_BIN, _BB_SUID_DROP, softlimit))
350IF_SORT(APPLET_NOEXEC(sort, sort, _BB_DIR_USR_BIN, _BB_SUID_DROP, sort)) 351IF_SORT(APPLET_NOEXEC(sort, sort, _BB_DIR_USR_BIN, _BB_SUID_DROP, sort))
351IF_SPLIT(APPLET(split, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 352IF_SPLIT(APPLET(split, _BB_DIR_USR_BIN, _BB_SUID_DROP))
@@ -358,7 +359,7 @@ IF_SULOGIN(APPLET(sulogin, _BB_DIR_SBIN, _BB_SUID_DROP))
358IF_SUM(APPLET(sum, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 359IF_SUM(APPLET(sum, _BB_DIR_USR_BIN, _BB_SUID_DROP))
359IF_SV(APPLET(sv, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 360IF_SV(APPLET(sv, _BB_DIR_USR_BIN, _BB_SUID_DROP))
360IF_SVLOGD(APPLET(svlogd, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) 361IF_SVLOGD(APPLET(svlogd, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
361IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, _BB_DIR_SBIN, _BB_SUID_DROP,swapoff)) 362IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, _BB_DIR_SBIN, _BB_SUID_DROP, swapoff))
362IF_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, _BB_DIR_SBIN, _BB_SUID_DROP, swapon)) 363IF_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, _BB_DIR_SBIN, _BB_SUID_DROP, swapon))
363IF_SWITCH_ROOT(APPLET(switch_root, _BB_DIR_SBIN, _BB_SUID_DROP)) 364IF_SWITCH_ROOT(APPLET(switch_root, _BB_DIR_SBIN, _BB_SUID_DROP))
364IF_SYNC(APPLET_NOFORK(sync, sync, _BB_DIR_BIN, _BB_SUID_DROP, sync)) 365IF_SYNC(APPLET_NOFORK(sync, sync, _BB_DIR_BIN, _BB_SUID_DROP, sync))