version 1.11, 2019/05/08 20:00:25 |
version 1.12, 2019/05/08 21:30:11 |
|
|
#include "extern.h" |
#include "extern.h" |
|
|
static int |
static int |
fcntl_nonblock(struct sess *sess, int fd) |
fcntl_nonblock(int fd) |
{ |
{ |
int fl; |
int fl; |
|
|
|
|
|
|
/* Begin by making descriptors non-blocking. */ |
/* Begin by making descriptors non-blocking. */ |
|
|
if (!fcntl_nonblock(&sess, fdin) || |
if (!fcntl_nonblock(fdin) || |
!fcntl_nonblock(&sess, fdout)) { |
!fcntl_nonblock(fdout)) { |
ERRX1("fcntl_nonblock"); |
ERRX1("fcntl_nonblock"); |
goto out; |
goto out; |
} |
} |