getHelperSet()->getCommand(); $directory = $command->getDirectory(); // Make the paths relative to Drupal root directory. foreach ($dumped_files as &$file) { $file = Path::join($directory, $file); } // @todo fix this. if (false && defined('DRUPAL_ROOT') && $dumped_files) { // @todo Below code is forking new process well but current process is not shutting down fully. $exec = drush_get_editor(); $exec = str_replace('%s', drush_escapeshellarg(Path::makeAbsolute($dumped_files[0], DRUPAL_ROOT)), $exec); $pipes = []; proc_close(proc_open($exec . ' 2> ' . drush_bit_bucket() . ' &', [], $pipes)); } parent::printSummary($output, $dumped_files); } }