summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5e09e95)
raw | patch | inline | side by side (parent: 5e09e95)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Jan 2008 13:45:10 +0000 (13:45 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Jan 2008 13:45:10 +0000 (13:45 +0000) |
Removed STD* mappings.
Writes PID file again.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8324 594d385d-05f5-0310-b6e9-bd551577e9d8
Writes PID file again.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8324 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-bus | patch | blob | history | |
gosa-si/gosa-si-server | patch | blob | history |
diff --git a/gosa-si/gosa-si-bus b/gosa-si/gosa-si-bus
index bca785bfedd78eb8ddea0e0d1aaeb93dd7b5dc89..42f6cb70c93396c26bd3c77aa7940799de4395e9 100755 (executable)
--- a/gosa-si/gosa-si-bus
+++ b/gosa-si/gosa-si-bus
# Just fork, if we"re not in foreground mode
if( ! $foreground ) {
chdir '/' or die "Can't chdir to /: $!";
- open STDIN, '/dev/null' or die "Can't read /dev/null: $!";
- open STDOUT, '>>/dev/null' or die "Can't write to /dev/null: $!";
- open STDERR, '>>/dev/null' or die "Can't write to /dev/null: $!";
- defined($pid = fork) or die "Can't fork: $!";
- exit if $pid;
+ $pid = fork;
setsid or die "Can't start a new session: $!";
umask 0;
}
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index 807f86a85ec7d2caf523e43ddc82405918a060d0..dfec2b882ef7a11752e3aeef476375b2d6858cac 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
# Just fork, if we"re not in foreground mode
if( ! $foreground ) {
chdir '/' or die "Can't chdir to /: $!";
- open STDIN, '/dev/null' or die "Can't read /dev/null: $!";
- open STDOUT, '>>/dev/null' or die "Can't write to /dev/null: $!";
- open STDERR, '>>/dev/null' or die "Can't write to /dev/null: $!";
- defined($pid = fork) or die "Can't fork: $!";
- exit if $pid;
+ $pid = fork;
setsid or die "Can't start a new session: $!";
umask 0;
} else {