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__)
|
||||
ret = static_cast<std::int32_t>(exit_code::ui_failed);
|
||||
} else {
|
||||
#if defined(__APPLE__)
|
||||
#if defined(_WIN32)
|
||||
ui::handlers handlers(&config, &server);
|
||||
#else // !defined(_WIN32)
|
||||
project_cleanup();
|
||||
|
||||
ret = utils::create_daemon([&]() -> int {
|
||||
@@ -105,9 +107,7 @@ auto main(int argc, char **argv) -> int {
|
||||
project_cleanup();
|
||||
return 0;
|
||||
});
|
||||
#else
|
||||
ui::handlers handlers(&config, &server);
|
||||
#endif
|
||||
#endif // defined(_WIN32)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user