AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080204081503.479dc0bc@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<chris.vandever@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E0353B525@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Mon, 4 Feb 2008 08:15:16 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Chris Vandever" <chris.vandever@onstor.com>
Subject: Re: BSD Question for LSI Escalation
Message-ID: <20080204081516.1bd1a28b@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0353B525@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E03E9A5B4@onstor-exch02.onstor.net>
	<20080203205753.51eedea4@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E0353B525@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

OK, I looked it up, it should be /dev/tty00

On Mon, 4 Feb 2008 00:33:23 -0800 "Chris Vandever"
<chris.vandever@onstor.com> wrote:

> Thanks.  I'll try your suggestions.
> 
> ChrisV
> 
> 
> -----Original Message-----
> From: Andy Sharp
> Sent: Sun 2/3/2008 8:57 PM
> To: Chris Vandever
> Subject: Re: BSD Question for LSI Escalation
>  
> On Fri, 1 Feb 2008 20:20:59 -0800 "Chris Vandever"
> <chris.vandever@onstor.com> wrote:
> 
> > I need to pick your brain on this one.
> > 
> > I'm working on an escalation for LSI where bsd hangs in reboot
> > (maybe 10% of the time).  I added instrumentation to /sbin/reboot
> > to print how far I get.  Reboot, in its infinite wisdom, forks a
> > child and the child calls revoke("/dev/console"), which as far as I
> > can tell closes all open fd's for the device.  So, I added code to
> > the parent to re-open "/dev/console" and dup it to stdin/out/err.
> > This works fine when nfxsh calls system("reboot"), but there is
> > zero output when chassisd does the same thing.  I'm thinking it's
> > because chassisd runs as a daemon.  Is there some other dev I can
> > open from a daemon that will give me output on the ssc console?
> > 
> > Thanks.
> > 
> > ChrisV
> > 
> 
> There should be a regular serial device that corresponds to the serial
> port in use.  /dev/console is largely an alias.  I don't know what
> it's called in BSD but you should be able to tell by what is
> in /etc/inittab or by using ps when BSD is up and running and seeing
> what device is listed for login or csh, depending on whether you're
> logged in on the console or not.  Unfortunately I don't have any
> systems with BSD cf cards in them right now for me to boot up and see
> for myself.
> 
> Good luck,
> 
> a
> 
