1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/games/grdc
cheloha fb669f8977 grdc(6): implement timeout with alarm(3)
grdc(6) has an optional argument indicating a timeout in seconds.
For example, one could do:

	$ grdc 60

to to tell grdc(6) to run for sixty seconds and then exit gracefully.

As implemented, however, the timeout may occur too early or too late
if the system clock is reset with settimeofday(2).

To avoid this problem we can instead use alarm(3) and a signal handler
to implement the timeout.  alarm(3) is unaffected by settimeofday(2).
2020-06-06 17:03:16 +00:00
..
grdc.6 missing word found in my tree 2019-02-06 15:02:01 +00:00
grdc.c grdc(6): implement timeout with alarm(3) 2020-06-06 17:03:16 +00:00
Makefile