diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-01-23 12:27:58 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-01-23 12:27:58 +0000 |
commit | a3d5bfcecec49bf197157bae4bee520e613c2efc (patch) | |
tree | 9515be36c8afabaaf70cfffe6e77915720cde44b /tmux.c | |
parent | 1ebe79dd628f009108c3d6dbdbfbfc69b7a6933d (diff) |
Define away pledge() on !OpenBSD.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -261,13 +261,11 @@ main(int argc, char **argv) if (shellcmd != NULL && argc != 0) 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"); -#endif /* * tmux is a UTF-8 terminal, so if TMUX is set, assume UTF-8. |