summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-07-29 15:18:27 +0200
committerKay Sievers <kay@vrfy.org>2014-07-29 15:18:27 +0200
commitdd5eddd28a74a49607a8fffcaf960040dba98479 (patch)
treec2f6f64a9db3c6a2223d119faffae48a1f998d5b /src/test
parent9719859c07aa13539ed2cd4b31972cd30f678543 (diff)
udev: unify event timeout handling
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-udev.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/test-udev.c b/src/test/test-udev.c
index b057cc8c0f..26d6537ccf 100644
--- a/src/test/test-udev.c
+++ b/src/test/test-udev.c
@@ -80,7 +80,6 @@ out:
return err;
}
-
int main(int argc, char *argv[]) {
_cleanup_udev_unref_ struct udev *udev = NULL;
_cleanup_udev_event_unref_ struct udev_event *event = NULL;
@@ -155,8 +154,8 @@ int main(int argc, char *argv[]) {
}
}
- udev_event_execute_rules(event, rules, &sigmask_orig);
- udev_event_execute_run(event, NULL);
+ udev_event_execute_rules(event, USEC_PER_SEC, rules, &sigmask_orig);
+ udev_event_execute_run(event, USEC_PER_SEC, NULL);
out:
if (event != NULL && event->fd_signal >= 0)
close(event->fd_signal);