diff options
author | David A. Madore <david+git@madore.org> | 2010-02-22 14:42:11 +0100 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2010-02-22 14:42:11 +0100 |
commit | d1ae14233a8a106aff4bfaf61080cef916d48632 (patch) | |
tree | f1ce4379832ae091a4fe0c0dc549ace88a1cead7 | |
parent | 6f6c00294593b93ac6ad443915b6eec93ca259ba (diff) | |
download | emergency-d1ae14233a8a106aff4bfaf61080cef916d48632.tar.gz emergency-d1ae14233a8a106aff4bfaf61080cef916d48632.tar.bz2 emergency-d1ae14233a8a106aff4bfaf61080cef916d48632.zip |
Close stdout and stderr after forking (is this a good idea?).
-rwxr-xr-x | emergencyd.pl | 2 |
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; } |