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:
parent
ff60da760e
commit
b05eefbdeb
|
@ -497,7 +497,7 @@ if ( !$server_up )
|
||||||
my $core_dumped = $status&0x01;
|
my $core_dumped = $status&0x01;
|
||||||
|
|
||||||
my $out_str = "'$process->{daemon} ".join( ' ', @{$process->{args}} )."' ";
|
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 .= ", exit status $exit_status" if ( $exit_status );
|
||||||
$out_str .= ", signal $exit_signal" if ( $exit_signal );
|
$out_str .= ", signal $exit_signal" if ( $exit_signal );
|
||||||
#print( ", core dumped" ) if ( $core_dumped );
|
#print( ", core dumped" ) if ( $core_dumped );
|
||||||
|
|
Loading…
Reference in New Issue