cluster/fence/fence_tool fence_tool.c
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.
fence/fence_tool/fence_tool.c +5 -2
@@ -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 ; }