[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diskfs_console_stdio

From: Thomas Bushnell, BSG
Subject: Re: diskfs_console_stdio
Date: 29 Jun 2001 11:01:39 -0700
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Neal H Walfield <neal@cs.uml.edu> writes:

> I think that there is an error in
> libdiskfs/console.c:diskfs_console_stdio.  The first line of the
> functions is:
>       if (getpid () > 0)
> Currently, proc is always pid 0 and the root filesystem is pid 4.  As
> such, can we eliminate the else branch of if statement?

No.  The logic here is that if getpid works, we have a Real hurd
environment, and can use normal calls.  But if getpid doesn't work
(and we get zero back), that's because we're in initial bootstrap, and
we have to do something else to get console output.

(proc of course never calls this function)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]