From a99a28c871f9ca0186da9e42db6489ac990896e4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 10 Oct 2024 10:03:06 +0000 Subject: [PATCH] pty: Don't terminate the event loop on error Signed-off-by: Michael Tremer --- src/libpakfire/pty.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libpakfire/pty.c b/src/libpakfire/pty.c index 4288ffadc..232050706 100644 --- a/src/libpakfire/pty.c +++ b/src/libpakfire/pty.c @@ -283,7 +283,6 @@ static int pakfire_pty_drained(struct pakfire_pty* pty) { } static int pakfire_pty_done(struct pakfire_pty* pty, int code) { - sd_event* loop = NULL; int r; // Don't run this more than once @@ -302,11 +301,7 @@ static int pakfire_pty_done(struct pakfire_pty* pty, int code) { // Disconnect pakfire_pty_disconnect(pty); - // Fetch a reference to the event loop - loop = sd_event_ref(pty->loop); - - // Terminate the event loop - return sd_event_exit(loop, code < 0 ? EXIT_FAILURE : code); + return 0; } static int pakfire_pty_buffer_is_full(struct pakfire_pty* pty, const struct pakfire_pty_stdio* stdio) { -- 2.47.2