Made inability to find child non-fatal.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@575 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-06-25 09:43:16 +00:00
parent 2abf43c569
commit f20eeaa339
1 changed files with 5 additions and 1 deletions

View File

@ -324,7 +324,11 @@ if ( !connect( CLIENT, $saddr ) )
my $process = $pid_hash{$cpid}; my $process = $pid_hash{$cpid};
delete( $pid_hash{$cpid} ); delete( $pid_hash{$cpid} );
die( "Can't find child with pid of '$cpid'\n" ) unless( $process ); if ( !$process )
{
dprint( "Can't find child with pid of '$cpid'\n" );
return;
}
$process->{stopped} = time(); $process->{stopped} = time();
$process->{runtime} = ($process->{stopped}-$process->{started}); $process->{runtime} = ($process->{stopped}-$process->{started});