From 98e7fbb2acee0238381feea5d583fc439aae08e2 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 23 Jan 2017 10:09:43 +0000 Subject: Open /dev/ptm before pledge() and save it to be used for PTMGET later (this means inlining forkpty()). ok deraadt --- tmux.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tmux.h') diff --git a/tmux.h b/tmux.h index eb1660dd..2a26f10f 100644 --- a/tmux.h +++ b/tmux.h @@ -1501,6 +1501,7 @@ extern struct options *global_w_options; extern struct environ *global_environ; extern struct timeval start_time; extern const char *socket_path; +extern int ptm_fd; int areshell(const char *); void setblocking(int, int); const char *find_home(void); @@ -2329,4 +2330,8 @@ void style_apply_update(struct grid_cell *, struct options *, int style_equal(const struct grid_cell *, const struct grid_cell *); +/* pty.c */ +int pty_open(int *); +pid_t pty_fork(int, int *, char *, size_t, struct winsize *); + #endif /* TMUX_H */ -- cgit