/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data.
+ * Copyright (C) Index Data.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
#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.
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,