summaryrefslogtreecommitdiff
path: root/src/basic/terminal-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-07 23:38:20 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-08 15:03:31 +0200
commit40e1f4ea7458a0a80eaf1ef356e52bfe0835412e (patch)
tree51243d22f3e9af06b42c229341aa5bf0fa31c7ed /src/basic/terminal-util.h
parenta34ceba66fc0e856d8f76f340389a4768b57a365 (diff)
machined: when opening a shell via machined, pass tty fds in
With this change we'll open the shell's tty right from machined and then pass it to the transient unit we create. This way we make sure the pty is opened exactly as long as the transient service is around, and no longer, and vice versa. This way pty forwarders do not have to deal with EIO problems due to vhangup, as the pty is open all the time from the point we set things up to the point where the service goes away.
Diffstat (limited to 'src/basic/terminal-util.h')
-rw-r--r--src/basic/terminal-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/terminal-util.h b/src/basic/terminal-util.h
index 050d0524a5..ee0b68b433 100644
--- a/src/basic/terminal-util.h
+++ b/src/basic/terminal-util.h
@@ -124,3 +124,4 @@ int ptsname_malloc(int fd, char **ret);
int ptsname_namespace(int pty, char **ret);
int openpt_in_namespace(pid_t pid, int flags);
+int open_terminal_in_namespace(pid_t pid, const char *name, int mode);