Daemons detach atomically to avoid having to wait
Tests that start daemons have to "wait" for them to start. This commit makes Heimdal daemons prep to detach (when requested) by forking early, then having the child signal readiness to the parent when the child really is ready. The parent exits only which the child is ready. This means that tests will no longer need to wait for daemons. However, tests will still need a pidfile or such so they can stop the daemons. Note that the --detach options should not be used on OS X from launchd, only from tests.
This commit is contained in:
@@ -169,9 +169,8 @@ extern char *door_path;
|
||||
extern size_t max_request;
|
||||
extern sig_atomic_t exit_flag;
|
||||
extern int name_constraints;
|
||||
#ifdef SUPPORT_DETACH
|
||||
extern int detach_from_console;
|
||||
#endif
|
||||
extern int daemon_child;
|
||||
extern int launchd_flag;
|
||||
extern int disallow_getting_krbtgt;
|
||||
|
||||
|
Reference in New Issue
Block a user