• Jiri Slaby's avatar
    TTY: ldisc, allow waiting for ldisc arbitrarily long · d21ada2c
    Jiri Slaby authored
    commit df92d056 upstream.
    
    To fix a nasty bug in ldisc hup vs. reinit we need to wait infinitely
    long for ldisc to be gone. So here we add a parameter to
    tty_ldisc_wait_idle to allow that.
    
    This is only a preparation for the real fix which is done in the
    following patches.
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    Cc: Dave Young <hidave.darkstar@gmail.com>
    Cc: Dave Jones <davej@redhat.com>
    Cc: Ben Hutchings <ben@decadent.org.uk>
    Cc: Dmitriy Matrosov <sgf.dma@gmail.com>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    d21ada2c
tty_ldisc.c 23.4 KB