aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2014-10-09 01:59:25 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2014-10-09 01:59:25 +0000
commit75c2b79df8a80d7e44da0732ff6bb870a74d9919 (patch)
treeb76a33c383d99d069ec5116cfc9f9cca8c1737a5 /sys/kern/tty.c
parent511037bd433ef3b00b0f41a00c68190c6d3d5875 (diff)
downloadsrc-75c2b79df8a80d7e44da0732ff6bb870a74d9919.tar.gz
src-75c2b79df8a80d7e44da0732ff6bb870a74d9919.zip
Notes
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index e2a0fa3582a3..bf7f581751a1 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1392,14 +1392,14 @@ tty_timedwait(struct tty *tp, struct cv *cv, int hz)
error = cv_timedwait_sig(cv, tp->t_mtx, hz);
- /* Restart the system call when we may have been revoked. */
- if (tp->t_revokecnt != revokecnt)
- return (ERESTART);
-
/* Bail out when the device slipped away. */
if (tty_gone(tp))
return (ENXIO);
+ /* Restart the system call when we may have been revoked. */
+ if (tp->t_revokecnt != revokecnt)
+ return (ERESTART);
+
return (error);
}