[asterisk-commits] mvanbaak: trunk r119015 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 29 14:10:32 CDT 2008


Author: mvanbaak
Date: Thu May 29 14:10:31 2008
New Revision: 119015

URL: http://svn.digium.com/view/asterisk?view=rev&rev=119015
Log:
Make sure the nrfds and nefds are reset to NULL
before we enter manage_parkinglot.
This will get rid of CLI warnings like:
__ast_read: Exception flag set on 'SIP/<NUMBER>-<ID>', but no exception handler

(closes issue #12748)
Reported by: nreinartz
Patches:
      asterisk-multiparking_initialize_filedescr_sets-0.0.1.patch uploaded by nreinartz (license 452)

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svn.digium.com/view/asterisk/trunk/main/features.c?view=diff&rev=119015&r1=119014&r2=119015
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Thu May 29 14:10:31 2008
@@ -2535,8 +2535,8 @@
 {
 	fd_set rfds, efds;	/* results from previous select, to be preserved across loops. */
 	fd_set nrfds, nefds;	/* args for the next select */
-	FD_ZERO(&nrfds);
-	FD_ZERO(&nefds);
+	FD_ZERO(&rfds);
+	FD_ZERO(&efds);
 
 	for (;;) {
 		int res = 0;
@@ -2544,6 +2544,8 @@
 		int max = -1;	/* max fd, none there yet */
 		struct ao2_iterator iter;
 		struct ast_parkinglot *curlot;
+		FD_ZERO(&nrfds);
+		FD_ZERO(&nefds);
 		iter = ao2_iterator_init(parkinglots, 0);
 
 		while ((curlot = ao2_iterator_next(&iter))) {




More information about the asterisk-commits mailing list