Date: Wed, 5 Jan 2011 17:20:19 GMT From: Sergey Kandaurov <pluknet@gmail.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/61355: login(1) does not restore terminal ownership on exit Message-ID: <201101051720.p05HKJHe027529@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/61355; it has been noted by GNATS. From: Sergey Kandaurov <pluknet@gmail.com> To: bug-followup@FreeBSD.org, eugen@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101051720.p05HKJHe027529>