Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you ever see EBADF, abort the program. You've screwed up something badly somewhere. Ignoring EBADF is like ignoring a double free: even if you can get away with it in the short term, it's indicative of something horrible down the road.


Yes, for the reasons I already illustrated in my example. To be clear I am not advocating EBADF to be something you should live with. I am describing it as unintentional and as a bug. It is a time bomb for harmful race conditions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: