diff options
author | Kay Sievers <kay@vrfy.org> | 2014-07-30 09:31:38 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-07-30 09:31:38 -0400 |
commit | 471a5f341168cff3f07474b7c4a88779bdd8ca1d (patch) | |
tree | 80b5c3a53c25f451220a1cfef1e4dec467719b35 /test/test-udev.c | |
parent | babb0ec5865658d920ef0bb07c89a3122beb8ec2 (diff) |
udev: unify event timeout handling
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'test/test-udev.c')
-rw-r--r-- | test/test-udev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-udev.c b/test/test-udev.c index 1828d54e42..fd4388a678 100644 --- a/test/test-udev.c +++ b/test/test-udev.c @@ -90,7 +90,6 @@ out: return err; } - int main(int argc, char *argv[]) { struct udev *udev = NULL; struct udev_event *event = NULL; @@ -165,8 +164,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); |