mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When a program launched on the local console exits, the shell will
call read() to get the next command, and scread() disables the screensaver. We don't want this behaviour in the sc_saver_keybonly case. Submitted by: Olivier Houchard <doginou@ci0.org>
This commit is contained in:
parent
cdb886795d
commit
614be65181
1 changed files with 2 additions and 1 deletions
|
|
@ -554,7 +554,8 @@ scclose(dev_t dev, int flag, int mode, struct thread *td)
|
|||
int
|
||||
scread(dev_t dev, struct uio *uio, int flag)
|
||||
{
|
||||
sc_touch_scrn_saver();
|
||||
if (!sc_saver_keyb_only)
|
||||
sc_touch_scrn_saver();
|
||||
return ttyread(dev, uio, flag);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue