mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 01:00:30 -04:00
Fix system hang when printer locks on missing paper
(also called the "printer fiasco") Approved by: jkh
This commit is contained in:
parent
a9534fe4f0
commit
249a96889e
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue