From 2cf165db8bbcf43d9be3404f9566d523c8d6e323 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 5 Jan 2006 21:49:22 +0000 Subject: ifdef-protect setpgid and setsid. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@406 fefdeb5f-60dc-0310-8127-8f9354f1896f --- polyp/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'polyp/main.c') 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); -- cgit