aboutsummaryrefslogtreecommitdiffstats
path: root/src/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c
index 0b115c61..443d5e87 100644
--- a/src/select.c
+++ b/src/select.c
@@ -235,7 +235,7 @@ int osmo_select_main(int polling)
{
fd_set readset, writeset, exceptset;
int rc;
- struct timeval no_time = {0, 0};
+ struct timespec no_time = {0, 0};
FD_ZERO(&readset);
FD_ZERO(&writeset);
@@ -246,7 +246,8 @@ int osmo_select_main(int polling)
if (!polling)
osmo_timers_prepare();
- rc = select(maxfd+1, &readset, &writeset, &exceptset, polling ? &no_time : osmo_timers_nearest());
+ rc = pselect(maxfd+1, &readset, &writeset, &exceptset,
+ polling ? &no_time : osmo_timers_nearest(), NULL);
if (rc < 0)
return 0;