mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
fb669f8977
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). |
||
---|---|---|
.. | ||
grdc.6 | ||
grdc.c | ||
Makefile |