experimental: prevent FMONITOR from being set on, say, Minix 3, Plan 9

This commit is contained in:
tg
2009-04-03 09:42:25 +00:00
parent 56c6e384e6
commit e64197ba90

4
jobs.c
View File

@ -2,7 +2,7 @@
#include "sh.h" #include "sh.h"
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.46 2009/03/26 11:22:53 tg Exp $"); __RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.47 2009/04/03 09:42:25 tg Exp $");
/* Order important! */ /* Order important! */
#define PRUNNING 0 #define PRUNNING 0
@ -133,8 +133,10 @@ j_init(int mflagset)
setsig(&sigtraps[SIGCHLD], j_sigchld, setsig(&sigtraps[SIGCHLD], j_sigchld,
SS_RESTORE_ORIG|SS_FORCE|SS_SHTRAP); SS_RESTORE_ORIG|SS_FORCE|SS_SHTRAP);
#ifndef MKSH_UNEMPLOYED
if (!mflagset && Flag(FTALKING)) if (!mflagset && Flag(FTALKING))
Flag(FMONITOR) = 1; Flag(FMONITOR) = 1;
#endif
/* shl_j is used to do asynchronous notification (used in /* shl_j is used to do asynchronous notification (used in
* an interrupt handler, so need a distinct shf) * an interrupt handler, so need a distinct shf)