roken_detach_prep() should return fd

This commit is contained in:
Nicolas Williams
2019-08-14 17:37:31 -05:00
parent 5859bc3bdf
commit 1ae941af9b
9 changed files with 62 additions and 42 deletions

View File

@@ -798,7 +798,7 @@ main(int argc, char **argv)
}
if (detach_from_console > 0 && daemon_child == -1)
roken_detach_prep(argc, argv, "--daemon-child");
daemon_child = roken_detach_prep(argc, argv, "--daemon-child");
if (config_file == NULL) {
aret = asprintf(&config_file, "%s/kdc.conf", hdb_db_dir(context));