Hacker News new | past | comments | ask | show | jobs | submit login

I don't know if std::condition_variable is async-signal safe, but an easy fix is to replace the sleeping with pause(2). There's also sigwait(3), which wouldn't need a signal handler.





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

Search: