summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2009-04-03 21:16:45 +0000
committerDenis Vlasenko2009-04-03 21:16:45 +0000
commite0755e58ca07ce6a66aa184b5fb4b10b6950fd02 (patch)
tree0a8d98042ed6e5c2156ffc5a439de2c9b7dd2973
parentcc8289dc0498d50734770d06601756f7ddc55168 (diff)
downloadbusybox-e0755e58ca07ce6a66aa184b5fb4b10b6950fd02.zip
busybox-e0755e58ca07ce6a66aa184b5fb4b10b6950fd02.tar.gz
hush: yet another randomconfig fix
-rw-r--r--shell/hush.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 64c1d3d..c8bcf9b 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -994,22 +994,12 @@ static void set_fatal_signals_to_sigexit(void)
/*maybe_set_sighandler(SIGTERM);*/
/*maybe_set_sighandler(SIGINT );*/
}
-/* Used only to suppress ^Z in `cmd` */
-static void set_jobctrl_signals_to_IGN(void)
-{
- bb_signals(0
- + (1 << SIGTSTP)
- + (1 << SIGTTIN)
- + (1 << SIGTTOU)
- , SIG_IGN);
-}
#else /* !JOB */
#define set_fatal_signals_to_sigexit(handler) ((void)0)
-#define set_jobctrl_signals_to_IGN(handler) ((void)0)
-#endif /* JOB */
+#endif
/* Restores tty foreground process group, and exits. */
static void hush_exit(int exitcode) NORETURN;
@@ -3754,7 +3744,11 @@ static FILE *generate_stream_from_list(struct pipe *head)
* 'command execution'.
* SUSv3 says ctrl-Z should be ignored, ctrl-C should not.
*/
- set_jobctrl_signals_to_IGN();
+ bb_signals(0
+ + (1 << SIGTSTP)
+ + (1 << SIGTTIN)
+ + (1 << SIGTTOU)
+ , SIG_IGN);
/* Note: freeing 'head' here would break NOMMU. */
_exit(run_list(head));