Rev 641: fixed a fd leak on the recovery lock in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Mon Sep 24 00:19:08 GMT 2007
------------------------------------------------------------
revno: 641
revision-id: tridge at samba.org-20070924001907-jv6dux525q0b412a
parent: tridge at samba.org-20070924001218-jt245q36pojpzrrt
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-09-24 10:19:07 +1000
message:
fixed a fd leak on the recovery lock
modified:
server/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1
=== modified file 'server/ctdb_recover.c'
--- a/server/ctdb_recover.c 2007-09-21 02:24:02 +0000
+++ b/server/ctdb_recover.c 2007-09-24 00:19:07 +0000
@@ -671,6 +671,8 @@
lock.l_pid = 0;
if (fcntl(ctdb->recovery_lock_fd, F_SETLK, &lock) != 0) {
+ close(ctdb->recovery_lock_fd);
+ ctdb->recovery_lock_fd = -1;
return false;
}
More information about the samba-cvs
mailing list