bin/61355: login(1) does not restore terminal ownership on exit
Sergey Kandaurov
pluknet at gmail.com
Wed Jan 5 17:20:19 UTC 2011
The following reply was made to PR bin/61355; it has been noted by GNATS.
From: Sergey Kandaurov <pluknet at gmail.com>
To: bug-followup at FreeBSD.org, eugen at kuzbass.ru
Cc:
Subject: Re: bin/61355: login(1) does not restore terminal ownership on exit
Date: Wed, 5 Jan 2011 20:17:51 +0300
Strictly speaking, my 2c isn't related to the ticket, but still..
To recover tty ownership, I used kqueue() to pwait until a
"session" exec'ed from under su has finished (i.e. exec'ed
shell has exited), then ioctl(..,DEVFSIO_RAPPLY,..).
Messy but works.
my 2c.
More information about the freebsd-bugs
mailing list