version 1.180, 2017/04/19 12:44:29 |
version 1.181, 2017/04/20 17:49:26 |
|
|
#include <string.h> |
#include <string.h> |
#include <time.h> |
#include <time.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <util.h> |
|
|
#include "tmux.h" |
#include "tmux.h" |
|
|
|
|
if (shellcmd != NULL && argc != 0) |
if (shellcmd != NULL && argc != 0) |
usage(); |
usage(); |
|
|
if (pty_open(&ptm_fd) != 0) |
if ((ptm_fd = getptmfd()) == -1) |
errx(1, "open(\"/dev/ptm\""); |
err(1, "getptmfd"); |
if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd " |
if (pledge("stdio rpath wpath cpath flock fattr unix getpw sendfd " |
"recvfd proc exec tty ps", NULL) != 0) |
"recvfd proc exec tty ps", NULL) != 0) |
err(1, "pledge"); |
err(1, "pledge"); |