]> git.ipfire.org Git - pakfire.git/commitdiff
pty: Don't terminate the event loop on error
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Oct 2024 10:03:06 +0000 (10:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Oct 2024 10:03:06 +0000 (10:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/pty.c

index 4288ffadc1c94830beafe82ae2e8d788cee4f8c2..2320507064ce11990fba7b0d84a7a772cba59cb0 100644 (file)
@@ -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) {