aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipaccess-find.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-05-23 06:07:04 +0000
committerHarald Welte <laforge@gnumonks.org>2009-05-23 06:07:04 +0000
commit04d3c9224fa7f1ea78484fc5b56ae6908241213d (patch)
tree8a16630003f3f79869425d2c751d08293cc939ec /src/ipaccess-find.c
parent7d14476a6e24535ad43b8304b2dc43dd5a7f67d6 (diff)
An application that has own events and file descriptors, must poll
select function ob libbsc. A "polling" flag is used to enable polling. In this case select() will not sleep until file descriptor events occurr or nearest timer expires. Also a return value will indicate if there was an event that has been handled. If there was an event, the application decides to poll again and don't wait. In case for bsc_hack, the polling flag is not set. select will sleep as usual. (Andreas Eversberg)
Diffstat (limited to 'src/ipaccess-find.c')
-rw-r--r--src/ipaccess-find.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipaccess-find.c b/src/ipaccess-find.c
index 32f42e904..b3e9814a9 100644
--- a/src/ipaccess-find.c
+++ b/src/ipaccess-find.c
@@ -170,7 +170,7 @@ int main(int argc, char **argv)
printf("Trying to find ip.access BTS by broadcast UDP...\n");
while (1) {
- rc = bsc_select_main();
+ rc = bsc_select_main(0);
if (rc < 0)
exit(3);
}