remove extra parenthesēs; the error on WIFSIGNALED is still there:

unary - and & prios on Minix are correct, but gcc4 warns too much…
This commit is contained in:
tg 2009-04-05 13:37:37 +00:00
parent 7e7c648bd8
commit 5bfb6c97df

8
jobs.c
View File

@ -2,7 +2,7 @@
#include "sh.h" #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! */ /* Order important! */
#define PRUNNING 0 #define PRUNNING 0
@ -1030,7 +1030,7 @@ j_waitj(Job *j,
status = j->last_proc->status; status = j->last_proc->status;
if (Flag(FMONITOR) && j->state == PSIGNALLED && if (Flag(FMONITOR) && j->state == PSIGNALLED &&
(WIFSIGNALED(status)) && WIFSIGNALED(status) &&
(sigtraps[WTERMSIG(status)].flags & TF_TTY_INTR)) (sigtraps[WTERMSIG(status)].flags & TF_TTY_INTR))
trapsig(WTERMSIG(status)); trapsig(WTERMSIG(status));
} }
@ -1110,11 +1110,11 @@ j_sigchld(int sig __unused)
ru0 = ru1; ru0 = ru1;
p->status = status; p->status = status;
#ifndef MKSH_UNEMPLOYED #ifndef MKSH_UNEMPLOYED
if ((WIFSTOPPED(status))) if (WIFSTOPPED(status))
p->state = PSTOPPED; p->state = PSTOPPED;
else else
#endif #endif
if ((WIFSIGNALED(status))) if (WIFSIGNALED(status))
p->state = PSIGNALLED; p->state = PSIGNALLED;
else else
p->state = PEXITED; p->state = PEXITED;