projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
different approach, try signal compatibility package
[unix-history]
/
usr
/
src
/
bin
/
csh
/
sem.c
diff --git
a/usr/src/bin/csh/sem.c
b/usr/src/bin/csh/sem.c
index
08b88cb
..
53b77f2
100644
(file)
--- a/
usr/src/bin/csh/sem.c
+++ b/
usr/src/bin/csh/sem.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)sem.c 4.
2
%G%";
+static char *sccsid = "@(#)sem.c 4.
3
%G%";
#include "sh.h"
#include "sh.proc.h"
#include "sh.h"
#include "sh.proc.h"
@@
-114,7
+114,7
@@
execute(t, wanttty, pipein, pipeout)
int ochild, osetintr, ohaderr, odidfds, odidcch;
int oSHIN, oSHOUT, oSHDIAG, oOLDSTD, otpgrp;
int ochild, osetintr, ohaderr, odidfds, odidcch;
int oSHIN, oSHOUT, oSHDIAG, oOLDSTD, otpgrp;
-
(void) sigblock(mask(SIGCHLD)
);
+
sighold(SIGCHLD
);
ochild = child; osetintr = setintr;
ohaderr = haderr; odidfds = didfds; odidcch = didcch;
oSHIN = SHIN; oSHOUT = SHOUT;
ochild = child; osetintr = setintr;
ohaderr = haderr; odidfds = didfds; odidcch = didcch;
oSHIN = SHIN; oSHOUT = SHOUT;
@@
-122,7
+122,7
@@
execute(t, wanttty, pipein, pipeout)
Vsav = Vdp = 0; Vav = 0;
pid = vfork();
if (pid < 0) {
Vsav = Vdp = 0; Vav = 0;
pid = vfork();
if (pid < 0) {
-
(void) sigrelse(mask(SIGCHLD)
);
+
sigrelse(SIGCHLD
);
error("No more processes");
}
forked++;
error("No more processes");
}
forked++;
@@
-137,7
+137,7
@@
execute(t, wanttty, pipein, pipeout)
xfree(Vav); Vav = 0;
/* this is from pfork() */
palloc(pid, t);
xfree(Vav); Vav = 0;
/* this is from pfork() */
palloc(pid, t);
-
(void) sigrelse(mask(SIGCHLD)
);
+
sigrelse(SIGCHLD
);
} else {
/* this is from pfork() */
int pgrp;
} else {
/* this is from pfork() */
int pgrp;
@@
-152,21
+152,21
@@
execute(t, wanttty, pipein, pipeout)
if (setintr) {
setintr = 0;
#ifdef notdef
if (setintr) {
setintr = 0;
#ifdef notdef
- sig
nal
(SIGCHLD, SIG_DFL);
+ sig
sys
(SIGCHLD, SIG_DFL);
#endif
#endif
- sig
nal
(SIGINT,
+ sig
sys
(SIGINT,
ignint ? SIG_IGN : vffree);
ignint ? SIG_IGN : vffree);
- sig
nal
(SIGQUIT,
+ sig
sys
(SIGQUIT,
ignint ? SIG_IGN : SIG_DFL);
if (wanttty >= 0) {
ignint ? SIG_IGN : SIG_DFL);
if (wanttty >= 0) {
- sig
nal
(SIGTSTP, SIG_DFL);
- sig
nal
(SIGTTIN, SIG_DFL);
- sig
nal
(SIGTTOU, SIG_DFL);
+ sig
sys
(SIGTSTP, SIG_DFL);
+ sig
sys
(SIGTTIN, SIG_DFL);
+ sig
sys
(SIGTTOU, SIG_DFL);
}
}
- sig
nal
(SIGTERM, parterm);
+ sig
sys
(SIGTERM, parterm);
} else if (tpgrp == -1 && (t->t_dflg&FINT)) {
} else if (tpgrp == -1 && (t->t_dflg&FINT)) {
- sig
nal
(SIGINT, SIG_IGN);
- sig
nal
(SIGQUIT, SIG_IGN);
+ sig
sys
(SIGINT, SIG_IGN);
+ sig
sys
(SIGQUIT, SIG_IGN);
}
if (wanttty > 0)
ioctl(FSHTTY, TIOCSPGRP, &pgrp);
}
if (wanttty > 0)
ioctl(FSHTTY, TIOCSPGRP, &pgrp);
@@
-175,7
+175,7
@@
execute(t, wanttty, pipein, pipeout)
if (tpgrp > 0)
tpgrp = 0;
if (t->t_dflg & FNOHUP)
if (tpgrp > 0)
tpgrp = 0;
if (t->t_dflg & FNOHUP)
- sig
nal
(SIGHUP, SIG_IGN);
+ sig
sys
(SIGHUP, SIG_IGN);
if (t->t_dflg & FNICE)
nice(t->t_nice);
}
if (t->t_dflg & FNICE)
nice(t->t_nice);
}