lkml.org 
[lkml]   [2008]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: 2.6.25.3: su gets stuck for root
    On Mon, Jun 02, 2008 at 12:16:56PM +0200, Vegard Nossum wrote:
    > ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo
    > ...}) = ? ERESTARTSYS (To be restarted)
    > --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
    > --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
    > ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 opost isig icanon echo
    > ...}) = ? ERESTARTSYS (To be restarted)
    > --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
    > --- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
    > ... (repeating)
    >
    > The exact code path triggering this seems to be:
    >
    > tcsetattr() -> ioctl(TCSETS) -> set_termios() -> tty_check_change()

    This looks correct to me and in fact I see the behaviour you report on 2.6.23
    when running it. If I tell it to ignore SIGTTOU that also then behaves as
    expected.

    If
    your pgrp is not the pgrp of the tty
    and you are not ignoring TTOU
    and you are not orphaned (as a group)

    Then we are *supposed* to send you SIGTTOU and kick you back
    into touch.


    This is so that if you do

    someapp
    ^Z
    bg
    otherapp

    And someapp wants to change the tty settings it blocks back to the shell.

    This is correct behaviour and behaviour we've had for years.

    Alan



    \
     
     \ /
      Last update: 2008-06-02 12:53    [W:0.047 / U:61.868 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site