diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 02:20:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 02:20:19 +0200 |
commit | cf792a58abc4fc55d0622333d0eb17c6a80dc497 (patch) | |
tree | bd740050c3ac79b0db76bd29728dd4d29120ccc6 /coreutils/yes.c | |
parent | 0a53eadea528673a813c5f9312b1f53130429f7c (diff) | |
download | busybox-w32-cf792a58abc4fc55d0622333d0eb17c6a80dc497.tar.gz busybox-w32-cf792a58abc4fc55d0622333d0eb17c6a80dc497.tar.bz2 busybox-w32-cf792a58abc4fc55d0622333d0eb17c6a80dc497.zip |
NOFORK fixes
"rm -i FILE" and "yes" can now be interrupted by ^C in hush.
This also now works:
$ usleep 19999999
^C
$ echo $?
130
function old new delta
run_pipe 1668 1711 +43
pseudo_exec_argv 312 321 +9
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 52/0) Total: 52 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/yes.c')
-rw-r--r-- | coreutils/yes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/yes.c b/coreutils/yes.c index 81d875589..6b863c3c9 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -17,7 +17,8 @@ | |||
17 | //config: yes is used to repeatedly output a specific string, or | 17 | //config: yes is used to repeatedly output a specific string, or |
18 | //config: the default string `y'. | 18 | //config: the default string `y'. |
19 | 19 | ||
20 | //applet:IF_YES(APPLET_NOFORK(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes)) | 20 | //applet:IF_YES(APPLET_NOEXEC(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes)) |
21 | /* was NOFORK, but then yes can't be ^C'ed if run by hush */ | ||
21 | 22 | ||
22 | //kbuild:lib-$(CONFIG_YES) += yes.o | 23 | //kbuild:lib-$(CONFIG_YES) += yes.o |
23 | 24 | ||