*sigh*
[freeside.git] / fs_passwd / fs_passwdd
index 3245245..38079da 100755 (executable)
@@ -31,9 +31,9 @@ listen(Server,SOMAXCONN) or die "listen: $!";
 
 if ( -e $pid_file ) {
   open(PIDFILE,"<$pid_file");
-  chomp( my $old_pid = <$pid_file> );
+  chomp( my $old_pid = <PIDFILE> );
   close PIDFILE;
-  kill 'TERM', $pid_file;
+  kill 'TERM', $old_pid;
 }
 open(PIDFILE,">$pid_file");
 print PIDFILE "$$\n";