summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/src/select.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-04-28 11:43:37 +0200
committerHarald Welte <laforge@gnumonks.org>2010-04-28 11:43:37 +0200
commitc3ce8f62f67f493bb94e4552ac95b6dca9dd51f7 (patch)
treeddf747178f22c572bcc9bf62d73c93ca57f975d8 /src/shared/libosmocore/src/select.c
parentf1278ad9da228145925fd613d28c082dbf2806d6 (diff)
parent100224df0b711c7bf6c1150ce18cf595350cf0bd (diff)
Merge commit '100224df0b711c7bf6c1150ce18cf595350cf0bd'
Diffstat (limited to 'src/shared/libosmocore/src/select.c')
-rw-r--r--src/shared/libosmocore/src/select.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/libosmocore/src/select.c b/src/shared/libosmocore/src/select.c
index 9517778c..2f6afa7f 100644
--- a/src/shared/libosmocore/src/select.c
+++ b/src/shared/libosmocore/src/select.c
@@ -121,7 +121,8 @@ restart:
/* ugly, ugly hack. If more than one filedescriptors were
* unregistered, they might have been consecutive and
* llist_for_each_entry_safe() is no longer safe */
- if (unregistered_count > 1)
+ /* this seems to happen with the last element of the list as well */
+ if (unregistered_count >= 1)
goto restart;
}
return work;