*BSD News Article 22685


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!library.ucla.edu!europa.eng.gtefsd.com!uunet!math.fu-berlin.de!news.th-darmstadt.de!iti.informatik.th-darmstadt.de!deeken
From: deeken@iti.informatik.th-darmstadt.de (Hannes Deeken)
Newsgroups: comp.os.386bsd.questions
Subject: Re: newsyslog freezes the keyboard
Date: 21 Oct 1993 13:39:08 +0100
Organization: TU Darmstadt, ITI
Lines: 32
Message-ID: <deeken.751204437@iti.informatik.th-darmstadt.de>
References: <1993Oct13.232551.26343@CSD-NewsHost.Stanford.EDU>
NNTP-Posting-Host: spessart.iti.informatik.th-darmstadt.de

xavier@Theory.Stanford.EDU (Xavier Leroy) writes:

>Configuration: NetBSD 0.9, XFree 1.3.

>I'm experiencing the following strange behavior: whenever newsyslog
>rotates a log file, the keyboard freezes (all keypresses are ignored).

>More details:

[...]

>- This happens only when newsyslog actually rotates a log file
>(I've tried with either /var/adm/messages or /var/adm), but not when
>it decides there is nothing to do.

>Can anyone suggest an explanation or fix?

Whenever newsyslog rotates a logfile, it sends a SIGHUP to syslogd. This
causes syslogd to reread its config file, and (among other things) to
close and reopen /dev/console. The latter causes the real console tty (in
most cases /dev/vga) also to close and reopen, which reverts back to its
default settings. This causes not only the keyboard under X to freeze, but
also screen to detach (because of a SIGHUP, I suppose).

If anyone has a fix for this, I'd sure appreciate a copy :)


Hannes
-- 
Hans-Christoph Deeken | hannes@flinx.{RoBIN.de,hotb.sub.org} (home)
Jungfernstrasse 34    | deeken@iti.informatik.th-darmstadt.de (university)
64291 Darmstadt       | IRC: Glenlivet