public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - notifyd: fix lockfile
@ 2009-03-17  6:59 Fabio M. Di Nitto
  0 siblings, 0 replies; only message in thread
From: Fabio M. Di Nitto @ 2009-03-17  6:59 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=0eec7f7ae4eb29877631ad6ca4d50b8eb8b03bca
Commit:        0eec7f7ae4eb29877631ad6ca4d50b8eb8b03bca
Parent:        025f1d372a768b83bb8298a5bedd3ca8016af4b7
Author:        Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate:    Tue Mar 17 07:58:27 2009 +0100
Committer:     Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Tue Mar 17 07:58:27 2009 +0100

notifyd: fix lockfile

same as 025f1d372a768b83bb8298a5bedd3ca8016af4b7

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 cman/notifyd/main.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/cman/notifyd/main.c b/cman/notifyd/main.c
index bcacefa..0f60f60 100644
--- a/cman/notifyd/main.c
+++ b/cman/notifyd/main.c
@@ -384,15 +384,13 @@ int main(int argc, char **argv)
 {
 
 	read_arguments(argc, argv);
-	lockfile();
-
 	if (daemonize) {
 		if (daemon(0, 0) < 0) {
 			perror("Unable to daemonize");
 			exit(EXIT_FAILURE);
 		}
 	}
-
+	lockfile();
 	init_logging(0);
 	signal(SIGTERM, sigterm_handler);
 	set_oom_adj(-16);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-17  6:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17  6:59 cluster: STABLE3 - notifyd: fix lockfile Fabio M. Di Nitto

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).