would lose their parent.
ok tobhe@
-/* $OpenBSD: iked.c,v 1.65 2023/06/25 08:07:04 op Exp $ */
+/* $OpenBSD: iked.c,v 1.66 2023/06/28 12:31:19 gerhard Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
setproctitle("parent");
log_procinit("parent");
- if (!debug && daemon(0, 0) == -1)
- err(1, "failed to daemonize");
event_init();
-/* $OpenBSD: proc.c,v 1.38 2023/03/05 22:17:22 tobhe Exp $ */
+/* $OpenBSD: proc.c,v 1.39 2023/06/28 12:31:19 gerhard Exp $ */
/*
* Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org>
if (proc_id == PROC_PARENT) {
privsep_process = PROC_PARENT;
+ if (!debug && daemon(0, 0) == -1)
+ fatal("failed to daemonize");
proc_setup(ps, procs, nproc);
/*