From dd5eddd28a74a49607a8fffcaf960040dba98479 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 29 Jul 2014 15:18:27 +0200 Subject: udev: unify event timeout handling --- src/test/test-udev.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/test') 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); -- cgit v1.2.3-54-g00ecf