Return to client.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.44, 2010/08/23 17:36:32 | version 1.45, 2010/10/16 08:31:55 | ||
---|---|---|---|
|
|
||
fatal("fcntl failed"); | fatal("fcntl failed"); | ||
if (fcntl(fd, F_SETFL, mode|O_NONBLOCK) == -1) | if (fcntl(fd, F_SETFL, mode|O_NONBLOCK) == -1) | ||
fatal("fcntl failed"); | fatal("fcntl failed"); | ||
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) | |||
fatal("fcntl failed"); | |||
imsg_init(&client_ibuf, fd); | imsg_init(&client_ibuf, fd); | ||
event_set(&client_event, fd, EV_READ, client_callback, NULL); | event_set(&client_event, fd, EV_READ, client_callback, NULL); | ||