From 4a13ca98e18cea4acc8d605653d0ee8425e34f59 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 28 Jan 2016 22:10:06 -0600 Subject: Add SIGWINCH support to top, and implement -o and -n in pgrep/pkill. --- lib/net.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/net.c') 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; -- cgit v1.2.3