public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* dlm: master - dlm_controld: don't exit from query thread
@ 2009-03-05 17:27 David Teigland
0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-03-05 17:27 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=06f80dea1b729acea6cf1e061a5f7e8edd479de2
Commit: 06f80dea1b729acea6cf1e061a5f7e8edd479de2
Parent: 86c9bedb4e31d417b3c92803a82dcc02d36a1ddc
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Mar 5 11:23:50 2009 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Mar 5 11:23:50 2009 -0600
dlm_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/dlm_controld/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/group/dlm_controld/main.c b/group/dlm_controld/main.c
index eaffd47..71045fe 100644
--- a/group/dlm_controld/main.c
+++ b/group/dlm_controld/main.c
@@ -748,14 +748,14 @@ static void *process_queries(void *arg)
rv = setup_listener(DLMC_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:27 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:27 dlm: master - dlm_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).