aboutsummaryrefslogtreecommitdiffstats
path: root/src/select.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-05-31 18:13:40 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-05-31 18:13:40 +0200
commita928399a67d0311fab9ec7a305c1790fc2470dc7 (patch)
treee426a9a524356eecbd4d54ccc68ddc092c82c232 /src/select.c
parentfe2be43bce7b56ec0ee4ece18c4ba0ed7cc4ad94 (diff)
move to timespec WIPneels/monotonic_timers
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;