|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] libevtchn: add O_CLOEXEC support for Mini-OS
commit 5b265b19e435c2683a699607b21897dc3225679f
Author: Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Thu Jul 31 09:44:27 2025 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jul 31 09:44:27 2025 +0200
libevtchn: add O_CLOEXEC support for Mini-OS
With Mini-OS now supporting O_CLOEXEC for the kexec case, no longer
ignore the XENEVTCHN_NO_CLOEXEC flag in minios.c.
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Reviewed-by: Jason Andryuk <jason.andryuk@xxxxxxx>
Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
tools/libs/evtchn/minios.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/libs/evtchn/minios.c b/tools/libs/evtchn/minios.c
index 046cd28d37..0d2a201438 100644
--- a/tools/libs/evtchn/minios.c
+++ b/tools/libs/evtchn/minios.c
@@ -114,10 +114,6 @@ static void evtchn_initialize(void)
ftype_evtchn = alloc_file_type(&evtchn_ops);
}
-/*
- * XENEVTCHN_NO_CLOEXEC is being ignored, as there is no exec() call supported
- * in Mini-OS.
- */
int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
{
int fd;
@@ -137,6 +133,8 @@ int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int
flags)
return -1;
}
+ if ( !(flags & XENEVTCHN_NO_CLOEXEC) )
+ file->cloexec = true;
file->dev = ports;
XEN_LIST_INIT(&ports->list);
xce->fd = fd;
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |