public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* fence: master - fenced: don't exit from query thread
@ 2009-03-05 17:29 David Teigland
0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-03-05 17:29 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=445cf14ca007c11c16426678d5ad67802ed716af
Commit: 445cf14ca007c11c16426678d5ad67802ed716af
Parent: e5898a3d38f9814fa1a550e3b4122dca524641a9
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Mar 5 11:25:54 2009 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Mar 5 11:26:31 2009 -0600
fenced: don't exit from query thread
If the query thread gets an error it should just return instead
of calling exit() and terminating the daemon uncleanly.
Signed-off-by: David Teigland <teigland@redhat.com>
---
fence/fenced/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fence/fenced/main.c b/fence/fenced/main.c
index 451db6c..ddba022 100644
--- a/fence/fenced/main.c
+++ b/fence/fenced/main.c
@@ -534,14 +534,14 @@ static void *process_queries(void *arg)
rv = setup_listener(FENCED_QUERY_SOCK_PATH);
if (rv < 0)
- exit (-1);
+ return NULL;
s = rv;
for (;;) {
f = accept(s, NULL, NULL);
if (f < 0)
- exit (-1);
+ return NULL;
rv = do_read(f, &h, sizeof(h));
if (rv < 0) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-05 17:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-05 17:29 fence: master - fenced: don't exit from query thread David Teigland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).