9
0
Fork 0

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:
Harald Welte 2010-05-04 11:04:54 +02:00
parent c3dcba0fa6
commit 5d064ecb84
1 changed files with 2 additions and 0 deletions

View File

@ -504,6 +504,8 @@ int main(int argc, char **argv)
case -1: /* errno == EINTR : unblocked signal */
sys_err(LOG_ERR, __FILE__, __LINE__, 0,
"select() returned -1");
/* On error, select returns without modifying fds */
FD_ZERO(&fds);
break;
case 0:
/* printf("Select returned 0\n"); */