Skip to content

Commit

Permalink
Comment update.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Jul 26, 2021
1 parent 3138768 commit a52863f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/pgaudit_analyze
Original file line number Diff line number Diff line change
Expand Up @@ -600,10 +600,9 @@ sub daemonInit
chdir '/'
or confess "chdir() failed: $!";

# close stdin and stderr, stdout previously closed/redirected
# Close stdin and stderr. stdout previously closed/redirected.
open STDIN, '<', '/dev/null'
or confess "Couldn't close standard input: $!";

open STDERR, '<', '/dev/null'
or confess "Couldn't close standard error: $!";

Expand Down Expand Up @@ -648,7 +647,7 @@ my $strNextLogFile = nextLogFile($strLogPath);
open(my $hLog, '>>', $strLogOutFile)
or confess "unable to open pgAudit Analyze log file $strLogOutFile: $!";

# Always redirect stdout to logfile
# Redirect stdout to log file
open(STDOUT, '>&', $hLog)
or confess "unable to close standard output and redirect to log file: $!";

Expand Down

1 comment on commit a52863f

@amalek215
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Please sign in to comment.