summaryrefslogtreecommitdiffstats
path: root/polyp
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-12-14 14:09:00 +0000
committerLennart Poettering <lennart@poettering.net>2004-12-14 14:09:00 +0000
commita370e6e7635d4a0b50c5c884974764c890959a48 (patch)
tree971ba5056258118cc11911b7c860e178712e2ee3 /polyp
parentfa48de8a12730029fbc38f8ce7d61563ea5f6dcb (diff)
* fix daemonizing
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@322 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp')
-rw-r--r--polyp/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/polyp/main.c b/polyp/main.c
index f49232d4..43a48f6b 100644
--- a/polyp/main.c
+++ b/polyp/main.c
@@ -34,6 +34,7 @@
#include <ltdl.h>
#include <memblock.h>
#include <limits.h>
+#include <fcntl.h>
#ifdef HAVE_LIBWRAP
#include <syslog.h>
@@ -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("/");