From: Lennart Poettering Date: Tue, 14 Dec 2004 14:09:00 +0000 (+0000) Subject: * fix daemonizing X-Git-Tag: 1.0_branch~4110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a370e6e7635d4a0b50c5c884974764c890959a48;p=profile%2Fivi%2Fpulseaudio.git * fix daemonizing git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@322 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/polyp/main.c b/polyp/main.c index f49232d..43a48f6 100644 --- a/polyp/main.c +++ b/polyp/main.c @@ -34,6 +34,7 @@ #include #include #include +#include #ifdef HAVE_LIBWRAP #include @@ -286,6 +287,11 @@ int main(int argc, char *argv[]) { close(0); close(1); + close(2); + + open("/dev/null", O_RDONLY); + open("/dev/null", O_WRONLY); + open("/dev/null", O_WRONLY); } chdir("/");