[commit: packages/process] master, new-flags, new-flags-no-f3df9d6: (WIP, posix) implement DETACHED_PROCESS using setsid(2) (f4fe233)
git at git.haskell.org
git at git.haskell.org
Mon Nov 2 06:23:23 UTC 2015
Repository : ssh://git@git.haskell.org/process
On branches: master,new-flags,new-flags-no-f3df9d6
Link : http://ghc.haskell.org/trac/ghc/changeset/f4fe2332fe467b72b7341b9fa820a663e5c24e60/process
>---------------------------------------------------------------
commit f4fe2332fe467b72b7341b9fa820a663e5c24e60
Author: Daniel Brooks <db48x at db48x.net>
Date: Tue May 26 22:02:40 2015 -0700
(WIP, posix) implement DETACHED_PROCESS using setsid(2)
>---------------------------------------------------------------
f4fe2332fe467b72b7341b9fa820a663e5c24e60
cbits/runProcess.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/cbits/runProcess.c b/cbits/runProcess.c
index c0fd80f..618b13e 100644
--- a/cbits/runProcess.c
+++ b/cbits/runProcess.c
@@ -217,6 +217,10 @@ runInteractiveProcess (char *const args[],
(void)sigaction(SIGQUIT, &dfl, NULL);
}
+ if ((flags & RUN_PROCESS_DETACHED)) {
+ setsid();
+ }
+
/* the child */
if (environment) {
// XXX Check result
More information about the ghc-commits
mailing list