X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fdaemon.h;h=371a21c25c6d2aa433f9712294ee3ee63c63fb9a;hp=5ec2d882cdcc355f81ab06fbdb56a5211af9c341;hb=bb84694ae5b1951689fe049bef536e5a73deb208;hpb=ffc8ea2eb23fe8c74fbeb96d05b31c477767923f diff --git a/include/yaz/daemon.h b/include/yaz/daemon.h index 5ec2d88..371a21c 100644 --- a/include/yaz/daemon.h +++ b/include/yaz/daemon.h @@ -41,6 +41,7 @@ YAZ_BEGIN_CDECL #define YAZ_DAEMON_FORK 1 #define YAZ_DAEMON_DEBUG 2 #define YAZ_DAEMON_KEEPALIVE 4 +#define YAZ_DAEMON_LOG_REOPEN 8 /** \brief daemon utility. \param progname program name for logging purposes. @@ -61,6 +62,8 @@ YAZ_BEGIN_CDECL Flag YAZ_DAEMON_KEEPALIVE: Repeatedly calls work handler if it makes a "fatal" error. + + Flag YAZ_DAEMON_KEEPALIVE: Re-opens yaz log if SIGHUP is received */ YAZ_EXPORT int yaz_daemon(const char *progname,