From 5a20ba9ced160d99fbb3a7c4ef3333d589b760a8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 16 Dec 2024 18:24:08 +0000 Subject: [PATCH] jail: Cleanup if we cannot create an eventfd Signed-off-by: Michael Tremer --- src/libpakfire/jail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpakfire/jail.c b/src/libpakfire/jail.c index 74989a4e3..e702428ac 100644 --- a/src/libpakfire/jail.c +++ b/src/libpakfire/jail.c @@ -1437,10 +1437,10 @@ static int __pakfire_jail_exec(struct pakfire_jail* jail, Setup a file descriptor which can be used to notify the client that the parent has completed configuration. */ - ctx.completed_fd = eventfd(0, EFD_CLOEXEC); + ctx.completed_fd = r = eventfd(0, EFD_CLOEXEC); if (ctx.completed_fd < 0) { ERROR(jail->ctx, "eventfd() failed: %m\n"); - return -1; + goto ERROR; } // Setup the PTY -- 2.47.3