public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Teigland <teigland@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: dlm: master - dlm_controld: don't exit from query thread
Date: Thu, 05 Mar 2009 17:27:00 -0000 [thread overview]
Message-ID: <20090305172716.90D441201F1@lists.fedorahosted.org> (raw)
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) {
reply other threads:[~2009-03-05 17:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090305172716.90D441201F1@lists.fedorahosted.org \
--to=teigland@fedoraproject.org \
--cc=cluster-cvs-relay@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).