Pass daemon name to daemonize

This commit is contained in:
Sebastian Meßmer 2015-10-17 03:28:15 +02:00
parent 7f7e27d6a3
commit 451a84bebc

View File

@ -56,7 +56,7 @@ void runFilesystem(const ProgramOptions &options) {
// because it doesn't fork threads. What to do?
//TODO Setup stdout/stderr as log files so we see the program output when detached
if (!options.foreground()) {
cpputils::daemonize();
cpputils::daemonize("cryfs");
}
auto blockStore = make_unique_ref<OnDiskBlockStore>(bf::path(options.baseDir()));
CryDevice device(std::move(config), std::move(blockStore));