Merge "Only use limit.sh if /bin/bash executable, instead of if linux."
This commit is contained in:
commit
add089c254
1 changed files with 1 additions and 1 deletions
|
|
@ -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'] );
|
||||
|
|
|
|||
Loading…
Reference in a new issue