}
const char *cmdptr = (path_search ? 0 : command.c_str());
const char *wd = (work_dir.empty() ? 0 : work_dir.c_str());
- if(!CreateProcess(cmdptr, const_cast<char *>(cmdline.c_str()), 0, 0, false, 0, 0, wd, &startup, &priv->info))
+ if(!CreateProcess(cmdptr, const_cast<char *>(cmdline.c_str()), 0, 0, true, 0, 0, wd, &startup, &priv->info))
throw system_error("CreateProcess");
// XXX Should we close the duplicated handles? What if CreateProcess fails?