summaryrefslogtreecommitdiff
path: root/libdaemon/server
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2015-07-06 17:30:18 +0100
committerAlasdair G Kergon <agk@redhat.com>2015-07-06 17:30:18 +0100
commitdfe3eb12d074eb25063ce62a913825cfbc90a37b (patch)
tree1d159754a08472fdc7f82fc74522bd2b6373e059 /libdaemon/server
parentd3605b81f36d0e534172ab376466308042142ab8 (diff)
downloadlvm2-dfe3eb12d074eb25063ce62a913825cfbc90a37b.tar.gz
include: Standardise around new tool.h.
Diffstat (limited to 'libdaemon/server')
-rw-r--r--libdaemon/server/daemon-log.c17
-rw-r--r--libdaemon/server/daemon-server.c6
2 files changed, 21 insertions, 2 deletions
diff --git a/libdaemon/server/daemon-log.c b/libdaemon/server/daemon-log.c
index c1765de3f..5ea5cdc76 100644
--- a/libdaemon/server/daemon-log.c
+++ b/libdaemon/server/daemon-log.c
@@ -1,5 +1,22 @@
+/*
+ * Copyright (C) 2011-2012 Red Hat, Inc.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License v.2.1.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#define _REENTRANT
+
+#include "tool.h"
+
#include "daemon-server.h"
#include "daemon-log.h"
+
#include <syslog.h>
struct backend {
diff --git a/libdaemon/server/daemon-server.c b/libdaemon/server/daemon-server.c
index 8eda8cfb8..4f34aaf8d 100644
--- a/libdaemon/server/daemon-server.c
+++ b/libdaemon/server/daemon-server.c
@@ -10,6 +10,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define _REENTRANT
+
+#include "tool.h"
+
#include "daemon-io.h"
#include "daemon-server.h"
#include "daemon-log.h"
@@ -78,8 +82,6 @@ static void _exit_handler(int sig __attribute__((unused)))
# define SD_LISTEN_FDS_START 3
# define SD_FD_SOCKET_SERVER SD_LISTEN_FDS_START
-# include <stdio.h>
-
static int _is_idle(daemon_state s)
{
return s.idle && s.idle->is_idle && !s.threads->next;