summaryrefslogtreecommitdiff
path: root/fs_passwd
diff options
context:
space:
mode:
Diffstat (limited to 'fs_passwd')
-rwxr-xr-xfs_passwd/fs_passwdd6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs_passwd/fs_passwdd b/fs_passwd/fs_passwdd
index 38079da66..43eb5db1f 100755
--- a/fs_passwd/fs_passwdd
+++ b/fs_passwd/fs_passwdd
@@ -31,9 +31,11 @@ listen(Server,SOMAXCONN) or die "listen: $!";
if ( -e $pid_file ) {
open(PIDFILE,"<$pid_file");
- chomp( my $old_pid = <PIDFILE> );
+ #chomp( my $old_pid = <PIDFILE> );
+ my $old_pid = <PIDFILE>;
close PIDFILE;
- kill 'TERM', $old_pid;
+ $old_pid =~ /^(\d+)$/
+ kill 'TERM', $1;
}
open(PIDFILE,">$pid_file");
print PIDFILE "$$\n";