mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Define away pledge() on !OpenBSD.
This commit is contained in:
2
server.c
2
server.c
@ -148,11 +148,9 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
|
||||
if (log_get_level() > 3)
|
||||
tty_create_log();
|
||||
|
||||
#ifdef __OpenBSD__
|
||||
if (pledge("stdio rpath wpath cpath fattr unix getpw recvfd proc exec "
|
||||
"tty ps", NULL) != 0)
|
||||
fatal("pledge failed");
|
||||
#endif
|
||||
|
||||
RB_INIT(&windows);
|
||||
RB_INIT(&all_window_panes);
|
||||
|
Reference in New Issue
Block a user