Merge branch 'obsd-master'

Conflicts:
	Makefile
	tmux.c
This commit is contained in:
Thomas Adam
2017-01-23 12:20:43 +00:00
6 changed files with 79 additions and 1 deletions

3
tmux.c
View File

@ -42,6 +42,7 @@ struct hooks *global_hooks;
struct timeval start_time;
const char *socket_path;
int ptm_fd = -1;
static __dead void usage(void);
static char *make_label(const char *);
@ -261,6 +262,8 @@ main(int argc, char **argv)
usage();
#ifdef __OpenBSD__
if (pty_open(&ptm_fd) != 0)
errx(1, "open(\"/dev/ptm\"");
if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd "
"recvfd proc exec tty ps", NULL) != 0)
err(1, "pledge");