Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Improved temp-file creation



On Fri, Oct 29, 2004 at 05:01:20PM +1000, Geoff Wing wrote:
> You've replaced a couple of open()s which were O_NOCTTY with one that isn't.

Correct.  I had meant to discuss that, but neglected to do so.

Since we're using O_CREAT to ensure that we open a new file, I didn't
see any need to also specify O_NOCTTY -- i.e. how can the file be a tty
if it was just created?

Since some of the replaced open() calls used O_CREAT included O_NOCTTY
and some didn't, I chose to settle on leaving it out.  If I was wrong
about the flag being useless, we can add it back in.

Thanks for checking over the changes!

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author