mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Console driver behaviour?
@ 2002-01-30 16:25 Wartan Hachaturow
       [not found] ` <Pine.LNX.4.33.0201301508480.23104-100000@coffee.psychology.mcmaster.ca>
  2002-02-01  0:48 ` James Simmons
  0 siblings, 2 replies; 4+ messages in thread
From: Wartan Hachaturow @ 2002-01-30 16:25 UTC (permalink / raw)
  To: linux-kernel

Hello.

How can I determine that the program is run via ssh or on
a headless box?
The problem is with Linux Console Tools. It tries opening 
/dev/tty, /dev/tty0 and /dev/console respectively upon the 
start, and it fails on ssh'ed or headless boxes. Is there 
any way to catch the situation? I've thought that open should
return ENODEV in these cases, but it doesn't..

-- 
Regards, Wartan.
"Computers are not intelligent. They only think they are."

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

end of thread, other threads:[~2002-02-01  0:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-30 16:25 Console driver behaviour? Wartan Hachaturow
     [not found] ` <Pine.LNX.4.33.0201301508480.23104-100000@coffee.psychology.mcmaster.ca>
2002-01-30 20:57   ` Wartan Hachaturow
2002-02-01  0:43     ` James Simmons
2002-02-01  0:48 ` James Simmons

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

all inboxes | Powered by JetHome®