mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Make native platform's main loop less noisy.
This commit is contained in:
parent
6ea744421b
commit
b9e15a5986
@ -35,6 +35,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/select.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#include "net/wpcap-drv.h"
|
||||
@ -260,7 +261,9 @@ main(int argc, char **argv)
|
||||
|
||||
retval = select(maxfd + 1, &fdr, &fdw, NULL, &tv);
|
||||
if(retval < 0) {
|
||||
if(errno != EINTR) {
|
||||
perror("select");
|
||||
}
|
||||
} else if(retval > 0) {
|
||||
/* timeout => retval == 0 */
|
||||
for(i = 0; i <= maxfd; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user