From f20eeaa339eb43af453cc290d28877623ceb3e70 Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 25 Jun 2003 09:43:16 +0000 Subject: [PATCH] Made inability to find child non-fatal. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@575 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmdc.pl.z | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/zmdc.pl.z b/scripts/zmdc.pl.z index c02de8dcd..b32ab3bf6 100755 --- a/scripts/zmdc.pl.z +++ b/scripts/zmdc.pl.z @@ -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});