run: add a new "-t" mode for invoking a binary on an allocated TTY

This commit is contained in:
Lennart Poettering
2014-12-23 03:26:24 +01:00
parent 91f4347ef7
commit 9b15b7846d
7 changed files with 419 additions and 168 deletions
+3 -1
View File
@@ -28,7 +28,9 @@
typedef struct PTYForward PTYForward;
int pty_forward_new(sd_event *event, int master, PTYForward **f);
int pty_forward_new(sd_event *event, int master, bool repeat, PTYForward **f);
PTYForward *pty_forward_free(PTYForward *f);
int pty_forward_last_char(PTYForward *f, char *ch);
DEFINE_TRIVIAL_CLEANUP_FUNC(PTYForward*, pty_forward_free);