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:
mux 2002-05-04 15:42:38 +00:00
parent ae6db00714
commit 9b62981e97

View File

@ -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);
}