bug-coreutils
[Top][All Lists]
Advanced

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

Re: how does O_NOCTTY help? [Re: bug in chdir-safer


From: Paul Eggert
Subject: Re: how does O_NOCTTY help? [Re: bug in chdir-safer
Date: Sun, 12 Feb 2006 20:53:41 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

>> That's the basic idea, but I'm afraid it's a bit more complicated than
>> that.  The process is exposed even after it closes the terminal, since
>> it doesn't relinquish the controlling terminal even after it closes
>> the corresponding file descriptor (certainly if other processes have
>> the terminal open -- even via an independent descriptor...

> Your use of `processes' means `processes in the same process group', right?

No, unfortunately (if my memory is correct) it's any process,
anywhere.  This dates all the way back to a hack in 7th edition Unix,
which didn't have process groups.  As I dimly recall, it was a bit of
a mess.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]