uint64_t event_now;
int64_t priority;
+ log_info("/* %s(pidfd=%s) */", __func__, yes_no(with_pidfd));
+
assert_se(setenv("SYSTEMD_PIDFD", yes_no(with_pidfd), 1) >= 0);
assert_se(pipe(a) >= 0);
_cleanup_(sd_event_unrefp) sd_event *e = NULL;
uint64_t event_now;
+ log_info("/* %s */", __func__);
+
assert_se(sd_event_new(&e) >= 0);
assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
assert_se(sd_event_now(e, CLOCK_REALTIME, &event_now) > 0);
sd_event_source *u = NULL, *v = NULL, *s = NULL;
sd_event *e = NULL;
+ log_info("/* %s */", __func__);
+
assert_se(sd_event_default(&e) >= 0);
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+2, SIGRTMIN+3, SIGUSR2, -1) >= 0);
const char *q;
unsigned i;
+ log_info("/* %s(%u) */", __func__, n_create_events);
+
assert_se(sd_event_default(&e) >= 0);
assert_se(mkdtemp_malloc("/tmp/test-inotify-XXXXXX", &p) >= 0);
int pidfd;
pid_t pid, pid2;
+ log_info("/* %s */", __func__);
+
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGCHLD, -1) >= 0);
pid = fork();
uint64_t interval;
unsigned count, burst;
+ log_info("/* %s */", __func__);
+
assert_se(sd_event_default(&e) >= 0);
assert_se(pipe2(p, O_CLOEXEC|O_NONBLOCK) >= 0);