From 5bfb6c97df152c984708c094eb74f68d85a616a7 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 5 Apr 2009 13:37:37 +0000 Subject: [PATCH] =?UTF-8?q?remove=20extra=20parenthes=C4=93s;=20the=20erro?= =?UTF-8?q?r=20on=20WIFSIGNALED=20is=20still=20there:=20unary=20-=20and=20?= =?UTF-8?q?&=20prios=20on=20Minix=20are=20correct,=20but=20gcc4=20warns=20?= =?UTF-8?q?too=20much=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jobs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jobs.c b/jobs.c index 5780c49..bb1574b 100644 --- a/jobs.c +++ b/jobs.c @@ -2,7 +2,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.50 2009/04/05 13:07:11 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.51 2009/04/05 13:37:37 tg Exp $"); /* Order important! */ #define PRUNNING 0 @@ -1030,7 +1030,7 @@ j_waitj(Job *j, status = j->last_proc->status; if (Flag(FMONITOR) && j->state == PSIGNALLED && - (WIFSIGNALED(status)) && + WIFSIGNALED(status) && (sigtraps[WTERMSIG(status)].flags & TF_TTY_INTR)) trapsig(WTERMSIG(status)); } @@ -1110,11 +1110,11 @@ j_sigchld(int sig __unused) ru0 = ru1; p->status = status; #ifndef MKSH_UNEMPLOYED - if ((WIFSTOPPED(status))) + if (WIFSTOPPED(status)) p->state = PSTOPPED; else #endif - if ((WIFSIGNALED(status))) + if (WIFSIGNALED(status)) p->state = PSIGNALLED; else p->state = PEXITED;