summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-05-04 15:42:38 +0000
committermux <mux@FreeBSD.org>2002-05-04 15:42:38 +0000
commit9b62981e972957a49d7b2289f87be21ad32b0803 (patch)
tree51cd1a2faf174a1a269453c6689c0b992b308aad /sys
parentae6db007149df3d35cb33abb952358252f662c95 (diff)
downloadFreeBSD-src-9b62981e972957a49d7b2289f87be21ad32b0803.zip
FreeBSD-src-9b62981e972957a49d7b2289f87be21ad32b0803.tar.gz
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>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/syscons/syscons.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 982c7c2..0e519b0 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);
}
OpenPOWER on IntegriCloud