daemonize on unix
Some checks failed
BlockStorage/repertory_mac/pipeline/head There was a failure building this commit
Some checks failed
BlockStorage/repertory_mac/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -88,7 +88,9 @@ auto main(int argc, char **argv) -> int {
|
|||||||
#endif // defined(__APPLE__)
|
#endif // defined(__APPLE__)
|
||||||
ret = static_cast<std::int32_t>(exit_code::ui_failed);
|
ret = static_cast<std::int32_t>(exit_code::ui_failed);
|
||||||
} else {
|
} else {
|
||||||
#if defined(__APPLE__)
|
#if defined(_WIN32)
|
||||||
|
ui::handlers handlers(&config, &server);
|
||||||
|
#else // !defined(_WIN32)
|
||||||
project_cleanup();
|
project_cleanup();
|
||||||
|
|
||||||
ret = utils::create_daemon([&]() -> int {
|
ret = utils::create_daemon([&]() -> int {
|
||||||
@@ -105,9 +107,7 @@ auto main(int argc, char **argv) -> int {
|
|||||||
project_cleanup();
|
project_cleanup();
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
#else
|
#endif // defined(_WIN32)
|
||||||
ui::handlers handlers(&config, &server);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user