Return to top.c CVS log | Up to [local] / src / usr.bin / top |
version 1.30, 2003/11/01 20:20:57 | version 1.31, 2004/05/07 19:19:49 | ||
---|---|---|---|
|
|
||
* wait for either input or the end | * wait for either input or the end | ||
* of the delay period | * of the delay period | ||
*/ | */ | ||
if (poll(pfd, 1, delay * 1000) > 0) { | if (poll(pfd, 1, delay * 1000) > 0 && | ||
!(pfd[0].revents & (POLLERR|POLLHUP|POLLNVAL))) { | |||
char *errmsg; | char *errmsg; | ||
ssize_t len; | ssize_t len; | ||
int newval; | int newval; |