mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-17 19:31:18 +00:00
A cron watcher with start time zero, documented to mean 'now', never
runs:
uev_cron_init(ctx, w, cb, NULL, 0, 3600);
Zero is passed as is to the timerfd, where it disarms the timer.
Replace it with the current time when the event loop is running. This
also goes for uev_cron_set(), where zero no longer disarms the watcher,
use uev_cron_stop() for that.
The event loop used a start time of zero to mark an at job as done.
Stop the watcher there instead and keep its time, so restarting an at
job that was interrupted by a clock change does not run it at once.
Closes #30
24 lines
645 B
Makefile
24 lines
645 B
Makefile
EXTRA_DIST = check.h
|
|
CLEANFILES = *~ *.trs *.log
|
|
AM_CFLAGS = -W -Wall -Wextra -Wno-unused-result -Wno-unused-parameter
|
|
AM_CPPFLAGS = -D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64
|
|
AM_LDFLAGS = -L../src ../src/libuev.la
|
|
|
|
TESTS =
|
|
TESTS += active
|
|
TESTS += api
|
|
TESTS += complete
|
|
TESTS += cronnow
|
|
TESTS += cronrun
|
|
TESTS += cronstart
|
|
TESTS += error
|
|
TESTS += io
|
|
TESTS += nonblock
|
|
TESTS += resume
|
|
TESTS += signal
|
|
TESTS += stdin
|
|
TESTS += timer
|
|
TESTS += event
|
|
|
|
check_PROGRAMS = $(TESTS)
|