diff options
author | nsouch <nsouch@FreeBSD.org> | 2000-02-08 21:46:27 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 2000-02-08 21:46:27 +0000 |
commit | 3c20573ee30a9b7aca921c92838679e927c4df9d (patch) | |
tree | aa7f44f7b0da9a396bd063fa5b5a0f6f11ef9747 | |
parent | e128d80bda493459e589bde221bba401386dc9a7 (diff) | |
download | FreeBSD-src-3c20573ee30a9b7aca921c92838679e927c4df9d.zip FreeBSD-src-3c20573ee30a9b7aca921c92838679e927c4df9d.tar.gz |
Fix system hang when printer locks on missing paper
(also called the "printer fiasco")
Approved by: jkh
-rw-r--r-- | sys/dev/ppbus/lpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index 1c8aa00..d2c979c 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -865,12 +865,12 @@ lpt_intr(void *arg) /* * No more data waiting for printer. - * Wakeup is not done if write call was interrupted. + * Wakeup is not done if write call was not interrupted. */ sc->sc_state &= ~OBUSY; if(!(sc->sc_state & INTERRUPTED)) - wakeup((caddr_t)sc); + wakeup((caddr_t)lptdev); lprintf(("w ")); return; } else { /* check for error */ |