more of this:
• shell flags are now handled in one single place (sh_flags.h) • sync comments (between enum and array) and manpage with reality • FMONITOR is now no longer needed for Hartz IV shells
This commit is contained in:
8
exec.c
8
exec.c
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.64 2009/08/28 20:30:55 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.65 2009/09/20 16:40:55 tg Exp $");
|
||||
|
||||
static int comexec(struct op *, struct tbl *volatile, const char **,
|
||||
int volatile, volatile int *);
|
||||
@@ -671,7 +671,11 @@ comexec(struct op *t, struct tbl *volatile tp, const char **ap,
|
||||
|
||||
if (flags&XEXEC) {
|
||||
j_exit();
|
||||
if (!(flags&XBGND) || Flag(FMONITOR)) {
|
||||
if (!(flags&XBGND)
|
||||
#ifndef MKSH_UNEMPLOYED
|
||||
|| Flag(FMONITOR)
|
||||
#endif
|
||||
) {
|
||||
setexecsig(&sigtraps[SIGINT], SS_RESTORE_ORIG);
|
||||
setexecsig(&sigtraps[SIGQUIT], SS_RESTORE_ORIG);
|
||||
}
|
||||
|
Reference in New Issue
Block a user