chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fds: Introduce pipe_cloexec()
[secnet]
/
process.c
diff --git
a/process.c
b/process.c
index a9ff3d92648557d7692d9da97fe864c41227a5fe..64683159ccc40be20132f5bc8d40beb89ed325c1 100644
(file)
--- a/
process.c
+++ b/
process.c
@@
-310,9
+310,7
@@
void start_signal_handling(void)
sigemptyset(®istered);
sigemptyset(&pending);
- if (pipe(p)!=0) {
- fatal_perror("start_signal_handling: pipe");
- }
+ pipe_cloexec(p);
spw=p[1];
spr=p[0];
if (fcntl(spw, F_SETFL, fcntl(spw, F_GETFL)|O_NONBLOCK)==-1) {