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:
parent
2abf43c569
commit
f20eeaa339
|
@ -324,7 +324,11 @@ if ( !connect( CLIENT, $saddr ) )
|
|||
my $process = $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->{runtime} = ($process->{stopped}-$process->{started});
|
||||
|
|
Loading…
Reference in New Issue