diff options
author | Ron Yorston <rmy@pobox.com> | 2019-01-10 08:38:15 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-01-10 08:38:15 +0000 |
commit | f99a280743e877c14ee90a3f9e93a34ca3476a27 (patch) | |
tree | 60ca3d17596e190c8c7cbca587168946598bee8a /shell | |
parent | 40d5dd07ea1f290eaed30a03fd598e33a8eaf495 (diff) | |
parent | 6ca8e347fed8c24655df692f22694baf7c572770 (diff) | |
download | busybox-w32-f99a280743e877c14ee90a3f9e93a34ca3476a27.tar.gz busybox-w32-f99a280743e877c14ee90a3f9e93a34ca3476a27.tar.bz2 busybox-w32-f99a280743e877c14ee90a3f9e93a34ca3476a27.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 | ||||
-rw-r--r-- | shell/cttyhack.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/shell/ash.c b/shell/ash.c index 6d5c55d70..50d5ce9d4 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -31,7 +31,7 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | //config:config ASH | 33 | //config:config ASH |
34 | //config: bool "ash (77 kb)" | 34 | //config: bool "ash (78 kb)" |
35 | //config: default y | 35 | //config: default y |
36 | //config: depends on !NOMMU | 36 | //config: depends on !NOMMU |
37 | //config: help | 37 | //config: help |
@@ -4600,7 +4600,7 @@ wait_block_or_sig(int *status) | |||
4600 | /* Children exist, but none are ready. Sleep until interesting signal */ | 4600 | /* Children exist, but none are ready. Sleep until interesting signal */ |
4601 | #if 1 | 4601 | #if 1 |
4602 | sigfillset(&mask); | 4602 | sigfillset(&mask); |
4603 | sigprocmask(SIG_SETMASK, &mask, &mask); | 4603 | sigprocmask2(SIG_SETMASK, &mask); /* mask is updated */ |
4604 | while (!got_sigchld && !pending_sig) | 4604 | while (!got_sigchld && !pending_sig) |
4605 | sigsuspend(&mask); | 4605 | sigsuspend(&mask); |
4606 | sigprocmask(SIG_SETMASK, &mask, NULL); | 4606 | sigprocmask(SIG_SETMASK, &mask, NULL); |
diff --git a/shell/cttyhack.c b/shell/cttyhack.c index ec1b6c429..b9ee59bd0 100644 --- a/shell/cttyhack.c +++ b/shell/cttyhack.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * Licensed under GPLv2, see file LICENSE in this source tree. | 5 | * Licensed under GPLv2, see file LICENSE in this source tree. |
6 | */ | 6 | */ |
7 | //config:config CTTYHACK | 7 | //config:config CTTYHACK |
8 | //config: bool "cttyhack (2.5 kb)" | 8 | //config: bool "cttyhack (2.4 kb)" |
9 | //config: default y | 9 | //config: default y |
10 | //config: help | 10 | //config: help |
11 | //config: One common problem reported on the mailing list is the "can't | 11 | //config: One common problem reported on the mailing list is the "can't |
diff --git a/shell/hush.c b/shell/hush.c index 90191408d..920a85299 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -93,7 +93,7 @@ | |||
93 | * add =~ regex match operator: STR =~ REGEX | 93 | * add =~ regex match operator: STR =~ REGEX |
94 | */ | 94 | */ |
95 | //config:config HUSH | 95 | //config:config HUSH |
96 | //config: bool "hush (64 kb)" | 96 | //config: bool "hush (68 kb)" |
97 | //config: default y | 97 | //config: default y |
98 | //config: help | 98 | //config: help |
99 | //config: hush is a small shell. It handles the normal flow control | 99 | //config: hush is a small shell. It handles the normal flow control |
@@ -5998,7 +5998,7 @@ static const char *first_special_char_in_vararg(const char *cp) | |||
5998 | #endif | 5998 | #endif |
5999 | static char *encode_then_expand_vararg(const char *str, int handle_squotes, int do_unbackslash) | 5999 | static char *encode_then_expand_vararg(const char *str, int handle_squotes, int do_unbackslash) |
6000 | { | 6000 | { |
6001 | #if !BASH_PATTERN_SUBST | 6001 | #if !BASH_PATTERN_SUBST && ENABLE_HUSH_CASE |
6002 | const int do_unbackslash = 0; | 6002 | const int do_unbackslash = 0; |
6003 | #endif | 6003 | #endif |
6004 | char *exp_str; | 6004 | char *exp_str; |
@@ -11442,7 +11442,7 @@ static int wait_for_child_or_signal(struct pipe *waitfor_pipe, pid_t waitfor_pid | |||
11442 | * and get stuck in sigsuspend... | 11442 | * and get stuck in sigsuspend... |
11443 | */ | 11443 | */ |
11444 | sigfillset(&oldset); /* block all signals, remember old set */ | 11444 | sigfillset(&oldset); /* block all signals, remember old set */ |
11445 | sigprocmask(SIG_SETMASK, &oldset, &oldset); | 11445 | sigprocmask2(SIG_SETMASK, &oldset); |
11446 | 11446 | ||
11447 | if (!sigisemptyset(&G.pending_set)) { | 11447 | if (!sigisemptyset(&G.pending_set)) { |
11448 | /* Crap! we raced with some signal! */ | 11448 | /* Crap! we raced with some signal! */ |