aboutsummaryrefslogtreecommitdiffstats
path: root/src/starter
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-06-11 12:21:12 +0000
committerMartin Willi <martin@strongswan.org>2007-06-11 12:21:12 +0000
commit5e564f2bff1949789a662fc77b1ca1cbdcfbd265 (patch)
tree10a2dbaf76bc4943eed11882667092b64e9b4d3c /src/starter
parent432b298e403ed1a82f29d60219826b73b9b43d01 (diff)
downloadstrongswan-5e564f2bff1949789a662fc77b1ca1cbdcfbd265.tar.bz2
strongswan-5e564f2bff1949789a662fc77b1ca1cbdcfbd265.tar.xz
added setsid() to properly detach from console
Diffstat (limited to 'src/starter')
-rw-r--r--src/starter/starter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/starter/starter.c b/src/starter/starter.c
index 0bf1d7a71..f84d41380 100644
--- a/src/starter/starter.c
+++ b/src/starter/starter.c
@@ -276,6 +276,7 @@ int main (int argc, char **argv)
dup2(fnull, STDERR_FILENO);
close(fnull);
}
+ setsid();
}
break;
case -1: