projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
close stdin/out/err before forking an instance
[project/procd.git]
/
instance.c
diff --git
a/instance.c
b/instance.c
index
b5ecad0
..
28e5c94
100644
(file)
--- a/
instance.c
+++ b/
instance.c
@@
-81,6
+81,9
@@
instance_run(struct service_instance *in)
argv[argc++] = blobmsg_data(cur);
argv[argc] = NULL;
+ close(STDIN_FILENO);
+ close(STDOUT_FILENO);
+ close(STDERR_FILENO);
execvp(argv[0], argv);
exit(127);
}