[git commit] hush: add forgotten {} in multi-statement if.

Denys Vlasenko vda.linux at googlemail.com
Thu May 12 07:50:12 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=0c40a731e3fcebe49f5b1636011b20cb316aeb0d
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/hush.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/shell/hush.c b/shell/hush.c
index cdd4be4..89a13fe 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1489,15 +1489,16 @@ static sighandler_t pick_sighandler(unsigned sig)
 			handler = sigexit;
 #endif
 		/* sig has special handling? */
-		else if (G.special_sig_mask & sigmask)
+		else if (G.special_sig_mask & sigmask) {
 			handler = record_pending_signo;
-			/* TTIN/TTOU/TSTS can't be set to record_pending_signo
+			/* TTIN/TTOU/TSTP can't be set to record_pending_signo
 			 * in order to ignore them: they will be raised
 			 * in an endless loop when we try to do some
 			 * terminal ioctls! We do have to _ignore_ these.
 			 */
 			if (SPECIAL_JOBSTOP_SIGS & sigmask)
 				handler = SIG_IGN;
+		}
 	}
 	return handler;
 }
-- 
1.7.3.4



More information about the busybox-cvs mailing list