Problems regarding the writing of pidfiles resolved.

This commit is contained in:
Magnus Juntti 2008-02-20 19:18:13 +00:00
parent 5d4d7ac7ca
commit b6fbe49e84

View file

@ -460,6 +460,7 @@ $YES = 1;
$conf_file = "";
$make_daemon = $NO;
$output_to_logfile = $YES;
$write_pid = $YES;
$i = -1;
while ($i < $#ARGV) {
@ -506,7 +507,7 @@ if ($make_daemon == $YES) {
}
# Create pidfile
if (write_pid == $YES) {
if ($write_pid == $YES) {
open PIDFILE, ">$pidFile" or die "$PROGRAM_NAME: Can't open $pidFile: $!\n";
print PIDFILE $$;
close PIDFILE;