[lkml]   [2012]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectWhy are not processes HUPped when they open /dev/console?

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

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

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

suse labs

 \ /
  Last update: 2012-01-25 22:41    [W:0.039 / U:7.164 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site