s3: Actually use the usecs in aio_fork_suspend
authorVolker Lendecke <vl@samba.org>
Sun, 18 Jul 2010 15:12:30 +0000 (17:12 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 18 Jul 2010 19:22:41 +0000 (21:22 +0200)
Jeremy, please check!

source3/modules/vfs_aio_fork.c

index ff2b6ad9ffafdaa09a00bce362e02823cd03a0b1..02b1394216cef6964f07e5eb8a51a28471e11f12 100644 (file)
@@ -768,7 +768,8 @@ static int aio_fork_suspend(struct vfs_handle_struct *handle,
                struct timeval tv = convert_timespec_to_timeval(*timeout);
                struct tevent_timer *te = tevent_add_timer(ev,
                                                frame,
-                                               timeval_current_ofs(tv.tv_sec,0),
+                                               timeval_current_ofs(tv.tv_sec,
+                                                                   tv.tv_usec),
                                                aio_fork_suspend_timed_out,
                                                &timed_out);
                if (!te) {