extra parens around WIFSIGNALLED seem necessary on some OSes (gcc 4.1)
This commit is contained in:
4
jobs.c
4
jobs.c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#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! */
|
/* Order important! */
|
||||||
#define PRUNNING 0
|
#define PRUNNING 0
|
||||||
@ -995,7 +995,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));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user