From a0fd0b538c9f0ea6ea0f6290faeea7f99e2677f1 Mon Sep 17 00:00:00 2001 From: Christine Caulfield <ccaulfie@redhat.com> Date: Mon, 19 Apr 2010 10:28:35 +0100 Subject: [PATCH] cman: make libcman /dev/zero fd close-on-exec rhbz#585218 Signed-off-by: Christine Caulfield <ccaulfie@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 c7118f5..3ce6de4 100644 --- a/cman/lib/libcman.c +++ b/cman/lib/libcman.c @@ -340,6 +340,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; } -- 1.6.2.5