From e64197ba9073c8db08d3c492f1c3aa7ff2ca8a7f Mon Sep 17 00:00:00 2001 From: tg Date: Fri, 3 Apr 2009 09:42:25 +0000 Subject: [PATCH] experimental: prevent FMONITOR from being set on, say, Minix 3, Plan 9 --- jobs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jobs.c b/jobs.c index c82d8e6..2ddcf2e 100644 --- a/jobs.c +++ b/jobs.c @@ -2,7 +2,7 @@ #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! */ #define PRUNNING 0 @@ -133,8 +133,10 @@ j_init(int mflagset) setsig(&sigtraps[SIGCHLD], j_sigchld, SS_RESTORE_ORIG|SS_FORCE|SS_SHTRAP); +#ifndef MKSH_UNEMPLOYED if (!mflagset && Flag(FTALKING)) Flag(FMONITOR) = 1; +#endif /* shl_j is used to do asynchronous notification (used in * an interrupt handler, so need a distinct shf)