[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] TIOCNOTTY messes the controlling tty




On Thu, Sep 18, 2014 at 10:11 PM, Vincent Rivière <vincent.riviere@freesbee.fr> wrote:
A process has normally a controlling terminal (the one referred by /dev/tty, revealed by the "tty" command), and that terminal is attached to a group of process. ioctl(TIOCNOTTY) detaches the process from its controlling terminal. If the process is a session leader, it also detaches the controlling terminal from its process group. But there was bug: the terminal was always detached from its process group, including when it was called by a standard child process (i.e. when a daemon forks).

Vincent, I can't even imagine how would I debug and/or find out about it at all. Hats off!


--
MiKRO / Mystic Bytes
http://mikro.atari.org