projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af2e7f1
)
Fix comment in relation to vfork (we are using fork instead now)
author
Davin McCall
<davmac@davmac.org>
Fri, 13 Nov 2015 18:15:34 +0000
(18:15 +0000)
committer
Davin McCall
<davmac@davmac.org>
Fri, 13 Nov 2015 18:15:34 +0000
(18:15 +0000)
service.cc
patch
|
blob
|
history
diff --git
a/service.cc
b/service.cc
index c4c16d2f4bb36934bdd99e78b279e344fd15bba1..7d95ccb92a9e85016cc7fd1ad69ca9717027bd58 100644
(file)
--- a/
service.cc
+++ b/
service.cc
@@
-336,10
+336,7
@@
bool ServiceRecord::start_ps_process(const std::vector<std::string> &pargs)
exit(0);
}
else {
- // Parent process - we only reach here once the exec() above
- // has succeeded, or _exit() above was called (because vfork()
- // suspends the parent until either of those occurs).
-
+ // Parent process
close(pipefd[1]); // close the 'other end' fd
int exec_status;