From d1ae14233a8a106aff4bfaf61080cef916d48632 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Mon, 22 Feb 2010 14:42:11 +0100 Subject: Close stdout and stderr after forking (is this a good idea?). --- emergencyd.pl | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3