cluster: STABLE3 - cman: make libcman /dev/zero fd close-on-exec
Christine Caulfield
chrissie at fedoraproject.org
Mon Apr 19 09:29:05 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4f604bd22ed4b319dc64692c6d7f8596a68825e0
Commit: 4f604bd22ed4b319dc64692c6d7f8596a68825e0
Parent: dd9f2f2c9e524bf9eedadceb0714f1b04a26dd5b
Author: Christine Caulfield <ccaulfie at redhat.com>
AuthorDate: Mon Apr 19 10:28:35 2010 +0100
Committer: Christine Caulfield <ccaulfie at redhat.com>
CommitterDate: Mon Apr 19 10:28:35 2010 +0100
cman: make libcman /dev/zero fd close-on-exec
Signed-off-by: Christine Caulfield <ccaulfie at redhat.com>
---
cman/lib/libcman.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cman/lib/libcman.c b/cman/lib/libcman.c
index 93c5df1..daaad07 100644
--- a/cman/lib/libcman.c
+++ b/cman/lib/libcman.c
@@ -319,6 +319,7 @@ static cman_handle_t open_socket(const char *name, int namelen, void *privdata)
h = NULL;
errno = saved_errno;
}
+ fcntl(h->zero_fd, F_SETFD, 1); /* Set close-on-exec */
return (cman_handle_t)h;
}
More information about the cluster-commits
mailing list