[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
moving lutil_detach() in slapd?
Can I split lutil_detach() in two parts and move all but the chdir()
to just after slapd_daemon_init() in slapd.c:main.c? That is,
forking and killing the parent process, connecting standard i/o to
/dev/null, and detaching from the terminal.
I'm implementing an option to restart slapd (but not re-exec() it) if
SIGHUP is received, and need the restarting process to detach from the
terminal at that point.
--
Hallvard