Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
}
static int pakfire_pty_done(struct pakfire_pty* pty, int code) {
- sd_event* loop = NULL;
int r;
// Don't run this more than once
// 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) {