From 023fb90b83871a15ef7f57e8cd126e3426f99b9e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 31 Oct 2014 16:54:11 +0100 Subject: ptyforward: rework PTY forwarder logic used by nspawn to utilize the normal event loop We really should not run manual event loops anymore, but standardize on sd_event, so that we can run sd_bus connections from it eventually. --- src/shared/ptyfwd.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/shared/ptyfwd.h') diff --git a/src/shared/ptyfwd.h b/src/shared/ptyfwd.h index 8b657023a9..5a612fd597 100644 --- a/src/shared/ptyfwd.h +++ b/src/shared/ptyfwd.h @@ -24,4 +24,11 @@ #include #include -int process_pty(int master, sigset_t *mask, pid_t kill_pid, int signo); +#include "sd-event.h" + +typedef struct PTYForward PTYForward; + +int pty_forward_new(sd_event *event, int master, PTYForward **f); +PTYForward *pty_forward_free(PTYForward *f); + +DEFINE_TRIVIAL_CLEANUP_FUNC(PTYForward*, pty_forward_free); -- cgit v1.2.3-54-g00ecf