lkml.org 
[lkml]   [2004]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fork and Exec a process within the kernel
On Wed, Aug 11, 2004 at 07:24:42AM -0400, Richard B. Johnson wrote:
> On Wed, 11 Aug 2004, Erik Mouw wrote:
> > Please don't mislead newbies, Richard. /dev/console is NOT a link to
> > /dev/tty0, it's a completely different device:
> >
> > erik@abra2:~ >ls -l /dev/console
> > crw------- 1 root tty 5, 1 Apr 7 09:13 /dev/console
> > erik@abra2:~ >ls -l /dev/tty0
> > crw------- 1 root tty 4, 0 Feb 10 2000 /dev/tty0
> >
>
> Bullshit. I know how to use `file`.
>
> Script started on Wed Aug 11 07:21:39 2004
> # file /dev/console
> /dev/console: symbolic link to /dev/tty0

It might be a symlink on your machine, but that doesn't mean it's the
right way. For almost 7 years, /dev/console is a separate device, not a
symlink. Here's the relevant section from Documentation/devices.txt:

The console device, /dev/console, is the device to which system
messages should be sent, and on which logins should be permitted in
single-user mode. Starting with Linux 2.1.71, /dev/console is managed
by the kernel; for previous versions it should be a symbolic link to
either /dev/tty0, a specific virtual console such as /dev/tty1, or to
a serial port primary (tty*, not cu*) device, depending on the
configuration of the system.

Linux-2.1.71 was released on December 4, 1997. In your signature you
claim to run linux-2.4.26. Please update your system.


Erik

--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:05    [W:0.067 / U:6.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site