diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-29 19:10:31 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-29 19:10:31 +0000 |
commit | 653f5c97947970862b302b7bf8eab020584e102c (patch) | |
tree | 44cc6de6c9bd3d71bc04c5cdbbe3f20614eda5d1 /main | |
parent | 3dedea630df753b5ea3062fcab9d921a06ef31be (diff) |
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)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119015 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/features.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/features.c b/main/features.c index 1f2419d30..2daa14426 100644 --- a/main/features.c +++ b/main/features.c @@ -2535,8 +2535,8 @@ static void *do_parking_thread(void *ignore) { 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 @@ static void *do_parking_thread(void *ignore) 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))) { |