Skip to content

Commit

Permalink
Fix #2285, #2268. Recognize current working dir for multisites when b…
Browse files Browse the repository at this point in the history
…ootstrapping a site. Affects hosts that have pcntl_exec().
  • Loading branch information
weitzman committed May 7, 2018
1 parent 1cdafe9 commit 669a616
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/startup.inc
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ function drush_startup($argv) {
// Get the current environment for pnctl_exec.
$env = drush_env();

// Make sure Drush can locates original working directory. https://github.com/drush-ops/drush/issues/2285
chdir($cwd);

// Launch the new script in the same process.
// If the launch succeeds, then it will not return.
$error = pcntl_exec($found_script, $arguments, $env);
Expand Down

0 comments on commit 669a616

Please sign in to comment.