Subject: Re: panic: old sleep...
To: Darren Reed <>
From: Chris G Demetriou <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>
List: current-users
Date: 03/02/1995 12:16:53
[ cleaning up old mail... ]

> I call sleep like this:
> 	sleep(buffer, PZERO+1);
> (I'm sleeping on a read of a pseudo device which has no data, currently,
>  and I want to block on the operation but be able to interrupt it with
>  ^C).

if you've not already gotten the answer to this, you want to use tsleep().

> p.s. has anyone thought that perhaps panic messages should go through log()
>      rather than printf() in the kernel ?

umm, think about this for a second...  so, you write it it with log(),
which puts it to the message buffer, but _NOT_ the console...
(printf() sends to both the message buffer _and_ the console).

so, the next time syslog gets run, it'll print out the message...
but since you've _panic'd_ that's _NOT_ going to happen until after a
reboot, at least...  On boxes which clean memory when rebooting
(e.g. most i386en), you'll never see the panic message.  "not a feature."