From: Michael Tremer Date: Mon, 16 Dec 2024 18:24:08 +0000 (+0000) Subject: jail: Cleanup if we cannot create an eventfd X-Git-Tag: 0.9.30~694 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a20ba9ced160d99fbb3a7c4ef3333d589b760a8;p=pakfire.git jail: Cleanup if we cannot create an eventfd Signed-off-by: Michael Tremer --- 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