don't show error on SIGTERM in select() backend
This commit is contained in:
parent
dce8b97bba
commit
ccb66ced4f
|
@ -78,10 +78,11 @@ int net_backend_poll_select(struct net_backend* data, int ms)
|
|||
res = select(backend->maxfd, &backend->rfds, &backend->wfds, &backend->xfds, &tval);
|
||||
if (res == -1)
|
||||
{
|
||||
if (net_error() == EINTR)
|
||||
return 0;
|
||||
|
||||
printf("Error: %d\n", net_error());
|
||||
}
|
||||
if (res == -1 && net_error() == EINTR)
|
||||
return 0;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue