Commit a05ffb66 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to previous revision.

parent af981165
......@@ -323,8 +323,10 @@ sub AuditFork()
# Need to close these so that this side of the fork is disconnected.
if (!$daemon && $PERL_VERSION >= 5.008) {
close($libaudit::SAVE_STDOUT);
close($libaudit::SAVE_STDERR);
close($libaudit::SAVE_STDOUT)
if ($libaudit::SAVE_STDOUT);
close($libaudit::SAVE_STDERR)
if ($libaudit::SAVE_STDERR);
$libaudit::SAVE_STDOUT = 0;
$libaudit::SAVE_STDERR = 0;
}
......@@ -345,6 +347,7 @@ sub AuditFork()
POSIX::dup2(fileno(LOG), 2);
STDOUT->fdopen(1, "a");
STDERR->fdopen(2, "a");
close(LOG);
}
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment