From: Ian Jackson Date: Sat, 27 Sep 2014 12:56:35 +0000 (+0100) Subject: fds: Make many fds nonblocking X-Git-Tag: base.ipv6-polypath-fixes-2.v1~54 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/ba703386fd742f46f83430a7c48a9bfe53167eae?ds=inline;hp=ba703386fd742f46f83430a7c48a9bfe53167eae fds: Make many fds nonblocking Introduce iswouldblock to cope with POSIX not specifying which of EAGAIN or EWOULDBLOCK you get). In various subsystems, make more fds nonblocking and handle errors appropriately. Specifically: * Logging self-pipe reading end. * Signal self-pipe reading end. * SLIP both ends. Fixing the writing end involves breaking out a new function slip_write. We have to set these nonblocking after reading the confiramation byte. * tun's network interface fd. In various of these we add code to handle EINTR, too. Signed-off-by: Ian Jackson ---