diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2018-12-27 05:39:42 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2018-12-27 05:39:42 -0500 |
commit | 1998c0301f6f9542bf5dd51e8d18f3d7f4e76023 (patch) | |
tree | 47b092141978039c773e4a4e9f992eab90ee340b /gpsd.c | |
parent | e81cfb77ab1a8de2e7cac6883e632124bcbe6f35 (diff) | |
download | gpsd-1998c0301f6f9542bf5dd51e8d18f3d7f4e76023.tar.gz |
Factor most uses of pselect(2) into a new utility function named 'nanowait'.
Also, remove sime header inclusions discovered to be unnecessary during
the change.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -23,8 +23,6 @@ #include <sys/stat.h> #include <sys/types.h> -#include <sys/time.h> /* for pselect() */ -#include <sys/select.h> #include <stdio.h> #include <stdint.h> /* for uint32_t, etc. */ #include <time.h> @@ -735,7 +733,7 @@ static bool open_device( struct gps_device_t *device) gpsd_log(&context.errout, LOG_INF, "device %s activated\n", device->gpsdata.dev.path); if ( PLACEHOLDING_FD == activated ) { - /* it is a /dev/ppsX, no need to pselect() it */ + /* it is a /dev/ppsX, no need to wait on it */ return true; } FD_SET(device->gpsdata.gps_fd, &all_fds); |