public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question about /dev/console and /dev/tty
@ 2005-05-27  7:01 Tomko
  2005-05-27 10:29 ` Miquel van Smoorenburg
  0 siblings, 1 reply; 3+ messages in thread
From: Tomko @ 2005-05-27  7:01 UTC (permalink / raw)
  To: linux-kernel

Hi everyone,

Which device is /dev/console pointing to ? or is it a virtual device ? 
Actually why this node is made?

Why kernel default not providing a control terminal on /dev/console but 
on other device ?

It is not surprising that we can use CTRL-C to terminate some process on 
i386 linux on the Desktop machine,  is that mean the shell on our 
desktop is not using /dev/console ? so where are the shell running on?

Hope anyone can do me a favour.

Regards,
TOM




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question about /dev/console and /dev/tty
  2005-05-27  7:01 question about /dev/console and /dev/tty Tomko
@ 2005-05-27 10:29 ` Miquel van Smoorenburg
  2005-05-30  4:01   ` Tomko
  0 siblings, 1 reply; 3+ messages in thread
From: Miquel van Smoorenburg @ 2005-05-27 10:29 UTC (permalink / raw)
  To: linux-kernel

In article <4296C5C0.4030409@avantwave.com>,
Tomko  <tomko@avantwave.com> wrote:
>Hi everyone,
>
>Which device is /dev/console pointing to ? or is it a virtual device ? 
>Actually why this node is made?

See linux/Documentation/serial-console.txt

>Why kernel default not providing a control terminal on /dev/console but 
>on other device ?

Because some daemons open /dev/console to send last resort error
messages to, and you do not want them to unexpectedly gain a
controlling tty.

>It is not surprising that we can use CTRL-C to terminate some process on 
>i386 linux on the Desktop machine,  is that mean the shell on our 
>desktop is not using /dev/console ? so where are the shell running on?

/dev/tty1, /dev/tty2 etc

Mike.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: question about /dev/console and /dev/tty
  2005-05-27 10:29 ` Miquel van Smoorenburg
@ 2005-05-30  4:01   ` Tomko
  0 siblings, 0 replies; 3+ messages in thread
From: Tomko @ 2005-05-30  4:01 UTC (permalink / raw)
  To: linux-kernel

Hi,
Thank you very much for the reply, but i would like to ask some more.

1. it seems we can choose which device we want for console output by 
typing this on kernel command line:
console = device , options
if i type  "console = ttyS1 " is that means kernel will internally link 
/dev/console to /dev/ttyS1 , and when i do any operation to /dev/console 
, it is the same as i do to /dev/ttyS1 ?

2 . what means foreground virtual console as tty0 is representing ?

Regards,
TOM



Miquel van Smoorenburg wrote:

>In article <4296C5C0.4030409@avantwave.com>,
>Tomko  <tomko@avantwave.com> wrote:
>  
>
>>Hi everyone,
>>
>>Which device is /dev/console pointing to ? or is it a virtual device ? 
>>Actually why this node is made?
>>    
>>
>
>See linux/Documentation/serial-console.txt
>
>  
>
>>Why kernel default not providing a control terminal on /dev/console but 
>>on other device ?
>>    
>>
>
>Because some daemons open /dev/console to send last resort error
>messages to, and you do not want them to unexpectedly gain a
>controlling tty.
>
>  
>
>>It is not surprising that we can use CTRL-C to terminate some process on 
>>i386 linux on the Desktop machine,  is that mean the shell on our 
>>desktop is not using /dev/console ? so where are the shell running on?
>>    
>>
>
>/dev/tty1, /dev/tty2 etc
>
>Mike.
>
>-
>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/
>  
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-30  4:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-27  7:01 question about /dev/console and /dev/tty Tomko
2005-05-27 10:29 ` Miquel van Smoorenburg
2005-05-30  4:01   ` Tomko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox