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

Making a wrapper function that locked/serialized access to printf. There was a crash that would happen occasionally in a server which always happened in printf and outputting logs and debug data. While you'd think it was a software bug in calling printf, the underlying issue was that the app wasn't linked with the multithreaded stdlib on Windows, so therefore the printf we were calling was not reentrant.


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

Search: