version 1.12, 2019/05/08 21:30:11 |
version 1.12.4.1, 2021/11/09 13:41:24 |
|
|
|
|
if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil", |
if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil", |
NULL) == -1) |
NULL) == -1) |
err(1, "pledge"); |
err(ERR_IPC, "pledge"); |
|
|
memset(&sess, 0, sizeof(struct sess)); |
memset(&sess, 0, sizeof(struct sess)); |
sess.opts = opts; |
sess.opts = opts; |
|
|
/* Begin by making descriptors non-blocking. */ |
/* Begin by making descriptors non-blocking. */ |
|
|
if (!fcntl_nonblock(fdin) || |
if (!fcntl_nonblock(fdin) || |
!fcntl_nonblock(fdout)) { |
!fcntl_nonblock(fdout)) { |
ERRX1("fcntl_nonblock"); |
ERRX1("fcntl_nonblock"); |
goto out; |
goto out; |
} |
} |