summaryrefslogtreecommitdiffstats
path: root/polyp/main.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 21:49:22 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 21:49:22 +0000
commit2cf165db8bbcf43d9be3404f9566d523c8d6e323 (patch)
tree805c8c6e860f7a539b9d9df8c547486a2adc9bbf /polyp/main.c
parent08bbfd2169ff81e37f0e5bd911490fc07b8f05f9 (diff)
ifdef-protect setpgid and setsid.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@406 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/main.c')
-rw-r--r--polyp/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/polyp/main.c b/polyp/main.c
index 2e97e5cc..a56d2f1e 100644
--- a/polyp/main.c
+++ b/polyp/main.c
@@ -258,8 +258,12 @@ int main(int argc, char *argv[]) {
if (conf->auto_log_target)
pa_log_set_target(PA_LOG_SYSLOG, NULL);
+#ifdef HAVE_SETSID
setsid();
+#endif
+#ifdef HAVE_SETPGID
setpgid(0,0);
+#endif
close(0);
close(1);