From owner-freebsd-stable Sun Dec 30 15:45:55 2001 Delivered-To: freebsd-stable@freebsd.org Received: from shemp.palomine.net (shemp.palomine.net [216.135.64.135]) by hub.freebsd.org (Postfix) with SMTP id 03BC037B416 for ; Sun, 30 Dec 2001 15:45:52 -0800 (PST) Received: (qmail 6380 invoked by uid 1000); 30 Dec 2001 23:45:46 -0000 Date: Sun, 30 Dec 2001 18:45:46 -0500 From: Chris Johnson To: David Malone Cc: stable@FreeBSD.ORG Subject: Re: syslogd blocking => can't su to root Message-ID: <20011230184545.A6319@palomine.net> References: <20011230081106.A98698@palomine.net> <20011230111949.G2732-100000@nivomede.internal.lustygrapes.net> <20011230173548.A58662@walton.maths.tcd.ie> <20011230215027.A62327@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011230215027.A62327@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Sun, Dec 30, 2001 at 09:50:27PM +0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 30, 2001 at 09:50:27PM +0000, David Malone wrote: > Actually, I've looked at the syslog(3) code and I think I understand > what is going on. Syslog(3) won't block while sending a message to > syslogd, but if it fails to do this then it tries to write the > message to /dev/console. I guess it is getting stuck here, in the > same way as syslogd is stuck. >=20 > If someone has a machine in this state then if they hit control-t > when su is stuck, then it should show up as stuck in state ttywai. > I guess a fix for this would be to make syslog(3) write to /dev/console > in a non-blocking way. >=20 > There is actually a comment saying "don't worry about blocking; if > the console blocks everything will". This doesn't seem to be true > if network services could keep running. That's the case in my situation. The box is running just fine, providing al= l of the services it always does. I just can't su to root, because syslogd can't write "su to root," or whatever it says, on the console. Chris --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8L6coyeUEMvtGLWERAqU8AJ41e5sOJoh9SS9TchBwt0J/9rk1ggCgsf8G W6T9GWLJXDRW448wlqv0olY= =Ulp9 -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message