Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
singron
33 days ago
|
parent
|
context
|
favorite
| on:
Zero-Cost POSIX Compliance: Encoding the Socket St...
Yes it's not UB, but the consequences are not limited to a EINVAL/EBADF/EBADFD. Calling close twice is essentially the same problem as calling free twice, so you get all the use-after-free problems on your file descriptors.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: