diff options
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/video.c b/sys/dev/video.c index 294cc9e2528..61e37fb1d04 100644 --- a/sys/dev/video.c +++ b/sys/dev/video.c @@ -1,4 +1,4 @@ -/* $OpenBSD: video.c,v 1.41 2017/10/11 08:08:50 mpi Exp $ */ +/* $OpenBSD: video.c,v 1.42 2019/10/06 17:13:10 mpi Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -182,7 +182,7 @@ videoread(dev_t dev, struct uio *uio, int ioflag) 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) |