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 /gpsmon.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 'gpsmon.c')
-rw-r--r-- | gpsmon.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -20,7 +20,6 @@ #include <stdarg.h> #include <time.h> #include <math.h> -#include <sys/time.h> /* expected to declare pselect(2) a la SuS */ #include <sys/types.h> #include <sys/stat.h> #include <sys/select.h> @@ -1492,7 +1491,7 @@ int main(int argc, char **argv) explanation = NULL; switch (bailout) { case TERM_SELECT_FAILED: - explanation = "pselect(2) failed\n"; + explanation = "I/O wait on device failed\n"; break; case TERM_DRIVER_SWITCH: explanation = "Driver type switch failed\n"; |