Return to top.c CVS log | Up to [local] / src / usr.bin / top |
version 1.80, 2013/01/14 21:33:59 | version 1.81, 2014/04/07 15:49:22 | ||
---|---|---|---|
|
|
||
* 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, (int)(delay * 1000)) > 0 && | if (poll(pfd, 1, (int)(delay * 1000)) > 0) { | ||
!(pfd[0].revents & (POLLERR|POLLHUP|POLLNVAL))) { | |||
char *errmsg; | char *errmsg; | ||
ssize_t len; | ssize_t len; | ||
if ((pfd[0].revents & (POLLERR|POLLHUP|POLLNVAL))) | |||
exit(1); | |||
clear_message(); | clear_message(); | ||