Merge "Only use limit.sh if /bin/bash executable, instead of if linux."

This commit is contained in:
jenkins-bot 2014-06-25 21:53:56 +00:00 committed by Gerrit Code Review
commit add089c254

View file

@ -2873,7 +2873,7 @@ function wfShellExec( $cmd, &$retval = null, $environ = array(),
$cmd = $envcmd . $cmd;
$useLogPipe = false;
if ( php_uname( 's' ) == 'Linux' ) {
if ( is_executable( '/bin/bash' ) ) {
$time = intval ( isset( $limits['time'] ) ? $limits['time'] : $wgMaxShellTime );
if ( isset( $limits['walltime'] ) ) {
$wallTime = intval( $limits['walltime'] );