|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl: use libxl_fd_set_{cloexec, nonblock} helpers
On 07/28/14 10:51, David Vrabel wrote: On 28/07/14 07:32, Jan Beulich wrote:On 25.07.14 at 19:07, <Ian.Jackson@xxxxxxxxxxxxx> wrote: Since this is an open, read, close; CLOEXEC is not needed at all. And it breaks the build on RHEL5. So I did a quick one liner. From 46e776a2b770857d869ef54c418924af043274d0 Mon Sep 17 00:00:00 2001 From: Don Slutz <dslutz@xxxxxxxxxxx> Date: Thu, 31 Jul 2014 01:26:58 +0000 Subject: [PATCH] Make RHEL5 build again Signed-off-by: Don Slutz <dslutz@xxxxxxxxxxx> --- tools/libxl/libxl_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c index 1fdf5ea..2649778 100644 --- a/tools/libxl/libxl_utils.c +++ b/tools/libxl/libxl_utils.c@@ -1047,7 +1047,7 @@ int libxl__random_bytes(libxl__gc *gc, uint8_t *buf, size_t len)
int fd;
int ret;
- fd = open(dev, O_RDONLY | O_CLOEXEC);
+ fd = open(dev, O_RDONLY);
if (fd < 0) {
LOGE(ERROR, "failed to open \"%s\"", dev);
return ERROR_FAIL;
--
1.8.2.1
-Don Slutz
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel Attachment:
0001-Make-RHEL5-build-again.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |