summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2010-02-22 14:42:11 +0100
committerDavid A. Madore <david+git@madore.org>2010-02-22 14:42:11 +0100
commitd1ae14233a8a106aff4bfaf61080cef916d48632 (patch)
treef1ce4379832ae091a4fe0c0dc549ace88a1cead7
parent6f6c00294593b93ac6ad443915b6eec93ca259ba (diff)
downloademergency-d1ae14233a8a106aff4bfaf61080cef916d48632.tar.gz
emergency-d1ae14233a8a106aff4bfaf61080cef916d48632.tar.bz2
emergency-d1ae14233a8a106aff4bfaf61080cef916d48632.zip
Close stdout and stderr after forking (is this a good idea?).
-rwxr-xr-xemergencyd.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/emergencyd.pl b/emergencyd.pl
index e1d1189..fe21de6 100755
--- a/emergencyd.pl
+++ b/emergencyd.pl
@@ -114,6 +114,8 @@ if ( $opts{f} ) {
print "$childpid\n";
exit 0;
}
+ close STDOUT;
+ close STDERR;
POSIX::setsid;
}