aboutsummaryrefslogtreecommitdiffstats
path: root/libosmocore/src/select.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-04-30 14:29:56 +0200
committerHarald Welte <laforge@gnumonks.org>2010-04-30 14:29:56 +0200
commite562502e8d35356f3183a39ff6aad200d11a77bb (patch)
tree31d24174740b1b104a7c13b0086cbee4fecb90c5 /libosmocore/src/select.c
parente9dd9b047590064eec1c618475ece7f9627e0312 (diff)
parent074c9f904cb5e4f6ab014d76e4abc079c16fc5d7 (diff)
Merge commit '074c9f904cb5e4f6ab014d76e4abc079c16fc5d7'
Diffstat (limited to 'libosmocore/src/select.c')
-rw-r--r--libosmocore/src/select.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libosmocore/src/select.c b/libosmocore/src/select.c
index 9517778ce..2f6afa7f5 100644
--- a/libosmocore/src/select.c
+++ b/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;