Bug 272 - Distinguished between normal and abnormal exits, and crashes in logs.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1861 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2006-01-23 21:31:43 +00:00
parent ff60da760e
commit b05eefbdeb
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ if ( !$server_up )
my $core_dumped = $status&0x01;
my $out_str = "'$process->{daemon} ".join( ' ', @{$process->{args}} )."' ";
$out_str .= ($exit_status==0)?"died":"crashed";
$out_str .= $exit_signal?"crashed":("exited ".(($exit_status==0)?"normally":"abnormally"));
$out_str .= ", exit status $exit_status" if ( $exit_status );
$out_str .= ", signal $exit_signal" if ( $exit_signal );
#print( ", core dumped" ) if ( $core_dumped );