Messages in this thread | | | Date | Mon, 18 Nov 2013 23:03:39 +0000 | From | One Thousand Gnomes <> | Subject | Re: [PATCH] tty: Only hangup once |
| |
> I doubt this is caused by a race condition; the first hangup would do most > of the destruction regardless, and a second hangup can't really race with > the first because of the tty_lock() held for most of the hangup. > > In any event, it's worth discovering what state a subsequent hangup can > effect that the first hangup left incomplete. I'll look into it. > > Regards, > Peter Hurley
disassociate_ctty races with tty_hangup.
tty->pgrp is only protected by ctrl_lock
See no_tty and the FIXME note. Sorry the FIXME wasn't clearer.
Alan
| |