This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
gfs2-utils: master - gfs_controld: don't exit from query thread
- From: David Teigland <teigland at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Thu, 5 Mar 2009 17:28:15 +0000 (UTC)
- Subject: gfs2-utils: master - gfs_controld: don't exit from query thread
Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=4355e3e4252e7bc185c15f4a2d3c53a433c01cc4
Commit: 4355e3e4252e7bc185c15f4a2d3c53a433c01cc4
Parent: 3bdbc3376282937d35c4333d7c64d77ddeb7b418
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Mar 5 11:25:00 2009 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Mar 5 11:25:00 2009 -0600
gfs_controld: 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>
---
group/gfs_controld/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/group/gfs_controld/main.c b/group/gfs_controld/main.c
index 0984c40..53d6e90 100644
--- a/group/gfs_controld/main.c
+++ b/group/gfs_controld/main.c
@@ -969,14 +969,14 @@ static void *process_queries(void *arg)
rv = setup_listener(GFSC_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) {