X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=secnet.h;h=06beb05df27fd9c2bb8221052a7d90f48176ec22;hp=e7eb161d2ff0114e5edea55840cd1d1a9abb4583;hb=9ee89d429d8bb895daeb2cc5ddd21af5ce2ace2f;hpb=42394c373c85942b55a9632c3182ec7c95731012 diff --git a/secnet.h b/secnet.h index e7eb161..06beb05 100644 --- a/secnet.h +++ b/secnet.h @@ -184,13 +184,17 @@ extern void register_for_poll(void *st, beforepoll_fn *before, /* The secnet program goes through a number of phases in its lifetime. Module code may arrange to be called just as various phases are - entered. */ + entered. + + Remember to update the table in util.c if changing the set of + phases. */ enum phase { PHASE_INIT, PHASE_GETOPTS, /* Process command-line arguments */ PHASE_READCONFIG, /* Parse and process configuration file */ PHASE_SETUP, /* Process information in configuration */ + PHASE_DAEMONIZE, /* Become a daemon (if necessary) */ PHASE_GETRESOURCES, /* Obtain all external resources */ PHASE_DROPPRIV, /* Last chance for privileged operations */ PHASE_RUN,