public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs2-utils: master - gfs_controld: don't exit from query thread
@ 2009-03-05 17:28 David Teigland
0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-03-05 17:28 UTC (permalink / raw)
To: cluster-cvs-relay
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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-05 17:28 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:28 gfs2-utils: master - gfs_controld: 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).