mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
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:
parent
08bbfd2169
commit
2cf165db8b
2 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue