ifdef-protect setpgid and setsid.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@406 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Pierre Ossman 2006-01-05 21:49:22 +00:00
parent 08bbfd2169
commit 2cf165db8b
2 changed files with 5 additions and 1 deletions

View file

@ -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);