mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.4.12 ... 2.4.16, /dev/tty
@ 2001-11-27  7:52 Joachim Backes
  2001-11-27  9:35 ` Bernd Eckenfels
  2001-11-27 14:00 ` Yaroslav Popovitch
  0 siblings, 2 replies; 7+ messages in thread
From: Joachim Backes @ 2001-11-27  7:52 UTC (permalink / raw)
  To: LINUX Kernel

Hi,

still having problems (starting with kernel 2.4.12) with
the /dev/tty device:

When logging in on the console and trying the "ps" command,
is will list  _all_ processes and not only those which are
attached to the controlling terminal. This seemed a little
bit suspicious.

Now, trying

        echo some text >/dev/tty

returns 

        bash: /dev/tty: No such device or address

Now trying the command

        tty

says 

        /dev/tty1

Now, I tried

        echo some text >/dev/tty1

It echoed correctly

        some text

on the console.

Then, I tried

        echo some text >/dev/tty

Now (!!!???) it echoes correctly "some text".

It seems that the cmd

        echo some text > `tty`

will repair something, but I don't no what and why.

-----------------------------------------------------

The above described problem first appeared with Kernel 2.4.12,
I tried the following kernels (now 2.4.16), BUT WITH NO SUCCESS.
Kernel 2.4.10 was _not buggy_.

Additionally, the problem does not arise on all my LINUX workstations,
but only on some. And it does not depend on the harware platform.
And is does not depend on the distribution. Both on RedHat 7.1 ans
Redhat 7.2 having the problem.

Regards


Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
Computer Center, High Performance Computing  | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html  


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

* Re: 2.4.12 ... 2.4.16, /dev/tty
  2001-11-27  7:52 2.4.12 ... 2.4.16, /dev/tty Joachim Backes
@ 2001-11-27  9:35 ` Bernd Eckenfels
  2001-11-27  9:52   ` Joachim Backes
  2001-11-27 14:00 ` Yaroslav Popovitch
  1 sibling, 1 reply; 7+ messages in thread
From: Bernd Eckenfels @ 2001-11-27  9:35 UTC (permalink / raw)
  To: linux-kernel

In article <XFMail.20011127085220.backes@rhrk.uni-kl.de> you wrote:
> still having problems (starting with kernel 2.4.12) with
> the /dev/tty device:

Do you have devfs? In that case the Devices are generated dynamically.

If you run ls on /dev/tty you should see an Entry with major 5 and minor
number 0.

Greetings
Bernd

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

* Re: 2.4.12 ... 2.4.16, /dev/tty
  2001-11-27  9:35 ` Bernd Eckenfels
@ 2001-11-27  9:52   ` Joachim Backes
  0 siblings, 0 replies; 7+ messages in thread
From: Joachim Backes @ 2001-11-27  9:52 UTC (permalink / raw)
  To: Bernd Eckenfels; +Cc: linux-kernel


On 27-Nov-2001 Bernd Eckenfels wrote: 
>  In article <XFMail.20011127085220.backes@rhrk.uni-kl.de> you wrote:
> > still having problems (starting with kernel 2.4.12) with
> > the /dev/tty device:
>  
>  Do you have devfs? In that case the Devices are generated dynamically.
>  
>  If you run ls on /dev/tty you should see an Entry with major 5 and minor
>  number 0.

 ls -l /dev/tty
crw-rw-rw-    1 root     root       5,   0 Nov 27 08:21 /dev/tty

/dev/tty was never missing!

>  
>  Greetings
>  Bernd
>  -
>  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/

Regards

Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
Computer Center, High Performance Computing  | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html  


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

* Re: 2.4.12 ... 2.4.16, /dev/tty
  2001-11-27  7:52 2.4.12 ... 2.4.16, /dev/tty Joachim Backes
  2001-11-27  9:35 ` Bernd Eckenfels
@ 2001-11-27 14:00 ` Yaroslav Popovitch
  2001-11-27 17:06   ` Dominik Mierzejewski
  1 sibling, 1 reply; 7+ messages in thread
From: Yaroslav Popovitch @ 2001-11-27 14:00 UTC (permalink / raw)
  To: Joachim Backes; +Cc: LINUX Kernel



I also tested my 2.4.10-17 for tty bug,it was there.And I found that bug
exists if I do the full installation of our distributive.

> Hi,
> 
> still having problems (starting with kernel 2.4.12) with
> the /dev/tty device:
> 
> When logging in on the console and trying the "ps" command,
> is will list  _all_ processes and not only those which are
> attached to the controlling terminal. This seemed a little
> bit suspicious.
> 
> Now, trying
> 
>         echo some text >/dev/tty
> 
> returns 
> 
>         bash: /dev/tty: No such device or address
> 
> Now trying the command
> 
>         tty
> 
> says 
> 
>         /dev/tty1
> 
> Now, I tried
> 
>         echo some text >/dev/tty1
> 
> It echoed correctly
> 
>         some text
> 
> on the console.
> 
> Then, I tried
> 
>         echo some text >/dev/tty
> 
> Now (!!!???) it echoes correctly "some text".
> 
> It seems that the cmd
> 
>         echo some text > `tty`
> 
> will repair something, but I don't no what and why.
> 
> -----------------------------------------------------
> 
> The above described problem first appeared with Kernel 2.4.12,
> I tried the following kernels (now 2.4.16), BUT WITH NO SUCCESS.
> Kernel 2.4.10 was _not buggy_.
> 
> Additionally, the problem does not arise on all my LINUX workstations,
> but only on some. And it does not depend on the harware platform.
> And is does not depend on the distribution. Both on RedHat 7.1 ans
> Redhat 7.2 having the problem.
> 
> Regards
> 
> 
> Joachim Backes
> 
> --
> 
> Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
> Computer Center, High Performance Computing  | Phone: +49-631-205-2438 
> D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
> ---------------------------------------------+------------------------
> WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html  
> 
> -
> 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] 7+ messages in thread

* Re: 2.4.12 ... 2.4.16, /dev/tty
  2001-11-27 14:00 ` Yaroslav Popovitch
@ 2001-11-27 17:06   ` Dominik Mierzejewski
  2001-11-28  6:18     ` Joachim Backes
  0 siblings, 1 reply; 7+ messages in thread
From: Dominik Mierzejewski @ 2001-11-27 17:06 UTC (permalink / raw)
  To: LINUX Kernel

On Tuesday, 27 November 2001, Yaroslav Popovitch wrote:
> 
> 
> I also tested my 2.4.10-17 for tty bug,it was there.And I found that bug
> exists if I do the full installation of our distributive.
> 
> > Hi,
> > 
> > still having problems (starting with kernel 2.4.12) with
> > the /dev/tty device:
> > 
> > When logging in on the console and trying the "ps" command,
> > is will list  _all_ processes and not only those which are
> > attached to the controlling terminal. This seemed a little
> > bit suspicious.
[snip] 
> > -----------------------------------------------------
> > 
> > The above described problem first appeared with Kernel 2.4.12,
> > I tried the following kernels (now 2.4.16), BUT WITH NO SUCCESS.
> > Kernel 2.4.10 was _not buggy_.
> > 
> > Additionally, the problem does not arise on all my LINUX workstations,
> > but only on some. And it does not depend on the harware platform.
> > And is does not depend on the distribution. Both on RedHat 7.1 ans
> > Redhat 7.2 having the problem.

I believe it's a problem with /bin/login, which has a race condition
preventing it from opening /dev/tty. It is fixed in rawhide, upgrading
util-linux to at least 2.11f-6 solved this for me.
So it's not a kernel issue.

-- 
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
Dominik 'Rathann' Mierzejewski <rathann(at)we.are.one.pl>

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

* Re: 2.4.12 ... 2.4.16, /dev/tty
  2001-11-27 17:06   ` Dominik Mierzejewski
@ 2001-11-28  6:18     ` Joachim Backes
  2001-11-28  7:06       ` Dominik Mierzejewski
  0 siblings, 1 reply; 7+ messages in thread
From: Joachim Backes @ 2001-11-28  6:18 UTC (permalink / raw)
  To: Dominik Mierzejewski; +Cc: LINUX Kernel

Hi, Dominik,

On 27-Nov-2001 Dominik Mierzejewski wrote: 
>  On Tuesday, 27 November 2001, Yaroslav Popovitch wrote:
> > 
> > 
> > I also tested my 2.4.10-17 for tty bug,it was there.And I found that bug
> > exists if I do the full installation of our distributive.
> > 
> > > Hi,
> > > 
> > > still having problems (starting with kernel 2.4.12) with
> > > the /dev/tty device:
> > > 
> > > When logging in on the console and trying the "ps" command,
> > > is will list  _all_ processes and not only those which are
> > > attached to the controlling terminal. This seemed a little
> > > bit suspicious.
>  [snip] 
> > > -----------------------------------------------------
> > > 
> > > The above described problem first appeared with Kernel 2.4.12,
> > > I tried the following kernels (now 2.4.16), BUT WITH NO SUCCESS.
> > > Kernel 2.4.10 was _not buggy_.
> > > 
> > > Additionally, the problem does not arise on all my LINUX workstations,
> > > but only on some. And it does not depend on the harware platform.
> > > And is does not depend on the distribution. Both on RedHat 7.1 ans
> > > Redhat 7.2 having the problem.
>  
>  I believe it's a problem with /bin/login, which has a race condition
>  preventing it from opening /dev/tty. It is fixed in rawhide, upgrading
>  util-linux to at least 2.11f-6 solved this for me.
>  So it's not a kernel issue.

Thanks, this helped me a lot. Only one issue: after installing rawhide vers. 2.11f-16
of util-linux and not 2.11f-6, my problem disappeared.

Regards

Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
Computer Center, High Performance Computing  | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html  


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

* Re: 2.4.12 ... 2.4.16, /dev/tty
  2001-11-28  6:18     ` Joachim Backes
@ 2001-11-28  7:06       ` Dominik Mierzejewski
  0 siblings, 0 replies; 7+ messages in thread
From: Dominik Mierzejewski @ 2001-11-28  7:06 UTC (permalink / raw)
  To: Joachim Backes; +Cc: LINUX Kernel

On Wednesday, 28 November 2001, Joachim Backes wrote:
> Hi, Dominik,
> 
[snip no controlling tty problem]  
> >  I believe it's a problem with /bin/login, which has a race condition
> >  preventing it from opening /dev/tty. It is fixed in rawhide, upgrading
> >  util-linux to at least 2.11f-6 solved this for me.
> >  So it's not a kernel issue.
> 
> Thanks, this helped me a lot. Only one issue: after installing rawhide
> vers. 2.11f-16
> of util-linux and not 2.11f-6, my problem disappeared.

Yes, yes. My mistake. I must've been hungry when writing that, because
I simply ate the '1'. :-) Sorry.
 
-- 
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
Dominik 'Rathann' Mierzejewski <rathann(at)we.are.one.pl>

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

end of thread, other threads:[~2001-11-28  7:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-27  7:52 2.4.12 ... 2.4.16, /dev/tty Joachim Backes
2001-11-27  9:35 ` Bernd Eckenfels
2001-11-27  9:52   ` Joachim Backes
2001-11-27 14:00 ` Yaroslav Popovitch
2001-11-27 17:06   ` Dominik Mierzejewski
2001-11-28  6:18     ` Joachim Backes
2001-11-28  7:06       ` Dominik Mierzejewski

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

Powered by JetHome