cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: jparsons@sourceware.org <jparsons@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/fence_tool fence_tool.c
Date: 23 Oct 2006 16:23:57 -0000	[thread overview]
Message-ID: <20061023162357.7135.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	jparsons at sourceware.org	2006-10-23 16:23:56

Modified files:
	fence/fence_tool: fence_tool.c 

Log message:
	This fixes bz 203804, wherein pid files are left around. Thx jlayton.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/fence_tool/fence_tool.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.5.2.12&r2=1.5.2.13

--- cluster/fence/fence_tool/fence_tool.c	2006/02/09 15:25:11	1.5.2.12
+++ cluster/fence/fence_tool/fence_tool.c	2006/10/23 16:23:56	1.5.2.13
@@ -357,7 +357,7 @@
 {
 	FILE *f;
 	char buf[33] = "";
-	int pid = 0;
+	int pid = 0, error;
 
 	lockfile();
 
@@ -379,7 +379,10 @@
 	close(cl_sock);
 
 	kill(pid, SIGTERM);
-
+	error = unlink(LOCKFILE_NAME);
+	if (error)
+		die("signal sent, but unable to unlink %s: %s", LOCKFILE_NAME,
+			strerror(error)); 
 	return EXIT_SUCCESS;
 }
 



             reply	other threads:[~2006-10-23 16:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23 16:23 jparsons [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-11-29 14:46 [Cluster-devel] cluster/fence/fence_tool fence_tool.c teigland
2007-08-15 20:57 teigland
2007-01-23 17:21 rpeterso
2007-01-23 16:54 rpeterso
2007-01-23 16:53 rpeterso
2007-01-05 16:44 rohara
2007-01-05 16:40 rohara
2007-01-05 16:24 rohara
2006-07-10 17:04 rohara

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=20061023162357.7135.qmail@sourceware.org \
    --to=jparsons@sourceware.org \
    /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 NNTP newsgroup(s).