Skip to content

Commit

Permalink
Fixed: Exit code not returned to caller on segfault (signal 11)
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
nuxwin committed Mar 2, 2016
1 parent 6f5854d commit b5867d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Expand Up @@ -9,6 +9,7 @@ BACKEND
Fixed: Missing fallback value for allow_url_fopen in Modules::SubAlias
Fixed: Obsolete SSL connection encryption method (nginx)
Fixed: ALLOW_URL_FOPEN placeholder not replaced in pool configuration files when using per_domain INI level (PHP-FPM)
Fixed: Exit code not returned to caller on segfault (signal 11)

CONFIG
Added: imscp_panel.service systemd unit file
Expand Down
3 changes: 2 additions & 1 deletion engine/PerlLib/iMSCP/Execute.pm
Expand Up @@ -176,7 +176,8 @@ sub getExitCode(;$)
}

if ($ret & 127) {
die(sprintf('Command died with signal %d, %s coredump', ($ret & 127), ($? & 128) ? 'with' : 'without'));
debug(sprintf('Command died with signal %d, %s coredump', ($ret & 127), ($? & 128) ? 'with' : 'without'));
return $ret;
}

$ret = $ret >> 8;
Expand Down

0 comments on commit b5867d1

Please sign in to comment.