windows fixes
This commit is contained in:
parent
c9281c9bcd
commit
439be1dea8
@ -464,7 +464,7 @@ auto handlers::launch_process(provider_type prov, std::string_view name,
|
|||||||
recur_mutex_lock inst_lock(inst_mtx);
|
recur_mutex_lock inst_lock(inst_mtx);
|
||||||
if (background) {
|
if (background) {
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
system(fmt::format(R"(start "" /b {})", cmd_line).c_str());
|
system(fmt::format(R"(start "" {})", cmd_line).c_str());
|
||||||
#elif defined(__linux__) // defined(__linux__)
|
#elif defined(__linux__) // defined(__linux__)
|
||||||
system(fmt::format("nohup {} 1>/dev/null 2>&1", cmd_line).c_str());
|
system(fmt::format("nohup {} 1>/dev/null 2>&1", cmd_line).c_str());
|
||||||
#else // !defined(__linux__) && !defined(_WIN32)
|
#else // !defined(__linux__) && !defined(_WIN32)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user