All of lore.kernel.org
 help / color / mirror / Atom feed
* Why are not processes HUPped when they open /dev/console?
@ 2012-01-25 21:38 Jiri Slaby
  2012-01-25 21:45 ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Slaby @ 2012-01-25 21:38 UTC (permalink / raw)
  To: Alan Cox, Linus Torvalds; +Cc: Greg KH, LKML

Hello,

don't you remember by a chance the reason for this test in __tty_hangup:
  if (filp->f_op->write != tty_write)

The logic there is not to HUP processes that have this tty open via
/dev/console.

It is there like forever. But now, due to that, processes that do
vhangup of /dev/ttyXYZ wait infinitely if there is some other process
that has the ttyXYZ open through /dev/console. (Due to infinite wait in
tty_ldisc_hangup.)

This happens on some distros on shutdown path because they do vhangup on
all tty[0-8] ttyS[01] and similar.

thanks,
-- 
js
suse labs

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

end of thread, other threads:[~2012-02-07  9:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25 21:38 Why are not processes HUPped when they open /dev/console? Jiri Slaby
2012-01-25 21:45 ` Alan Cox
2012-01-26 13:15   ` Jiri Slaby
2012-02-06 19:24     ` Pavel Machek
2012-02-07  9:58       ` Jiri Slaby

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.