Skip to contentSkip to conversation

master - libdaemon: add comment about using main and init

PATCH David Teigland 1 participant 1 message Jun 24, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7760665fb8f4a85a244a9751a0a1d1cc46c157dc
Commit:        7760665fb8f4a85a244a9751a0a1d1cc46c157dc
Parent:        44c7bc0262b6719efe75ecb6eb32eaab359e5779
Author:        David Teigland <[email protected]>
AuthorDate:    Wed Jun 24 12:16:26 2015 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Wed Jun 24 12:16:26 2015 -0500

libdaemon: add comment about using main and init

---
 libdaemon/server/daemon-server.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
libdaemon/server/daemon-server.c +5 -0
index ef0b964..8eda8cf 100644
@@ -604,6 +604,11 @@ void daemon_start(daemon_state s)
 	if (!s.foreground)
 		kill(getppid(), SIGTERM);
 
+	/*
+	 * Use daemon_main for daemon-specific init and polling, or
+	 * use daemon_init for daemon-specific init and generic lib polling.
+	 */
+
 	if (s.daemon_main) {
 		if (!s.daemon_main(&s))
 			failed = 1;