aboutsummaryrefslogtreecommitdiff
path: root/lib/net.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-28 22:10:06 -0600
committerRob Landley <rob@landley.net>2016-01-28 22:10:06 -0600
commit4a13ca98e18cea4acc8d605653d0ee8425e34f59 (patch)
tree42acd4e80890a5eab8df308c988f7bcf8dc87494 /lib/net.c
parent852740618edc876ac7416e18c2f92f78707cd708 (diff)
downloadtoybox-4a13ca98e18cea4acc8d605653d0ee8425e34f59.tar.gz
Add SIGWINCH support to top, and implement -o and -n in pgrep/pkill.
Diffstat (limited to 'lib/net.c')
-rw-r--r--lib/net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net.c b/lib/net.c
index facb0968..2e72b268 100644
--- a/lib/net.c
+++ b/lib/net.c
@@ -49,6 +49,7 @@ int xpoll(struct pollfd *fds, int nfds, int timeout)
for (;;) {
if (0>(i = poll(fds, nfds, timeout))) {
+ if (toys.signal) return i;
if (errno != EINTR && errno != ENOMEM) perror_exit("xpoll");
else if (timeout>0) timeout--;
} else return i;