projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa48de8
)
* fix daemonizing
author
Lennart Poettering
<lennart@poettering.net>
Tue, 14 Dec 2004 14:09:00 +0000
(14:09 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 14 Dec 2004 14:09:00 +0000
(14:09 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@322
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
polyp/main.c
patch
|
blob
|
history
diff --git
a/polyp/main.c
b/polyp/main.c
index
f49232d
..
43a48f6
100644
(file)
--- 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("/");