3 ms·
> I almost wonder if he was really looking for an objection to that proposal Nah, he wasn't. Near the end of our time slot, he shared the behavior of open() wi
by dolni 5y ago
> I almost wonder if he was really looking for an objection to that proposal
Nah, he wasn't. Near the end of our time slot, he shared the behavior of open() with me (that's how I learned about it).
I told him that doing it that way was silly, because it made the code's intent less clear. He didn't seem impressed.
- fanf2 5y agoAnother point on your side is that close(); open(); is racy in threaded programs: to avoid the races you need to use dup2(), but that still has caveats related to losing errors from close().