GGSN: Fix select() error case, we need to FD_ZERO() again
Taken from http://sourceforge.net/tracker/index.php?func=detail&aid=1811515&group_id=68956&atid=522957
This commit is contained in:
parent
c3dcba0fa6
commit
5d064ecb84
|
@ -504,6 +504,8 @@ int main(int argc, char **argv)
|
||||||
case -1: /* errno == EINTR : unblocked signal */
|
case -1: /* errno == EINTR : unblocked signal */
|
||||||
sys_err(LOG_ERR, __FILE__, __LINE__, 0,
|
sys_err(LOG_ERR, __FILE__, __LINE__, 0,
|
||||||
"select() returned -1");
|
"select() returned -1");
|
||||||
|
/* On error, select returns without modifying fds */
|
||||||
|
FD_ZERO(&fds);
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
/* printf("Select returned 0\n"); */
|
/* printf("Select returned 0\n"); */
|
||||||
|
|
Reference in New Issue