extra parens around WIFSIGNALLED seem necessary on some OSes (gcc 4.1)

This commit is contained in:
tg
2009-04-03 09:48:10 +00:00
parent 9aff4d78fe
commit e6a4798170

4
jobs.c
View File

@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.47 2009/04/03 09:42:25 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.48 2009/04/03 09:48:10 tg Exp $");
/* Order important! */
#define PRUNNING 0
@ -995,7 +995,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));
}