ok?

Index: dev/video.c
===================================================================
RCS file: /cvs/src/sys/dev/video.c,v
retrieving revision 1.41
diff -u -p -r1.41 video.c
--- dev/video.c 11 Oct 2017 08:08:50 -0000      1.41
+++ dev/video.c 5 Oct 2019 09:47:42 -0000
@@ -182,7 +182,7 @@ videoread(dev_t dev, struct uio *uio, in
 
        if (sc->sc_frames_ready < 1) {
                /* block userland read until a frame is ready */
-               error = tsleep(sc, PWAIT | PCATCH, "vid_rd", 0);
+               error = tsleep_nsec(sc, PWAIT | PCATCH, "vid_rd", INFSLP);
                if (sc->sc_dying)
                        error = EIO;
                if (error)

Reply via email to