diff options
Diffstat (limited to 'fs_passwd')
-rwxr-xr-x | fs_passwd/fs_passwdd | 6 |
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"; |