From 614be65181a860df69afa9bc1e82971e79d47b66 Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Sat, 4 May 2002 15:42:38 +0000 Subject: 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 --- sys/dev/syscons/syscons.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/syscons') diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 982c7c25c5ef..0e519b0fd9ce 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -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); } -- cgit v1.3