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
ae6db00714
commit
9b62981e97
@ -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…
x
Reference in New Issue
Block a user