From: Michael Tremer Date: Thu, 10 Oct 2024 10:03:06 +0000 (+0000) Subject: pty: Don't terminate the event loop on error X-Git-Tag: 0.9.30~1097 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a99a28c871f9ca0186da9e42db6489ac990896e4;p=pakfire.git pty: Don't terminate the event loop on error Signed-off-by: Michael Tremer --- 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) {