Skip to content

Commit

Permalink
Respect disable_functions list in use_pcntl_exec check (#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleeDev authored and weitzman committed Aug 2, 2017
1 parent 3852f40 commit 05ae7a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/startup.inc
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ function drush_startup($argv) {
}

// Always use pcntl_exec if it exists.
$use_pcntl_exec = function_exists("pcntl_exec");
$use_pcntl_exec = function_exists("pcntl_exec") && (strpos(ini_get('disable_functions'), 'pcntl_exec') === FALSE);

// If we have posix_getppid, then pass in the shell pid so
// that 'site-set' et. al. can work correctly.
Expand Down

0 comments on commit 05ae7a7

Please sign in to comment.