chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Import release 0.1.9
[secnet]
/
secnet.c
diff --git
a/secnet.c
b/secnet.c
index 489e0bf381e3686acb28433d4077dab953c78e66..57b4f052074d8a471c4936cd8b4952d3407f9759 100644
(file)
--- a/
secnet.c
+++ b/
secnet.c
@@
-342,6
+342,10
@@
static void droppriv(void)
} else if (p==0) {
/* Child process - all done, just carry on */
if (pf) fclose(pf);
+ /* Close stdin, stdout and stderr; we don't need them any more */
+ close(0);
+ close(1);
+ close(2);
secnet_is_daemon=True;
} else {
/* Error */