[Libwebsockets] signal handlers not async-safe

Phil philip.hodges at bluewin.ch
Wed Apr 21 18:27:57 CEST 2021


Hi

Just wanted to point out that functions called from a signal handler are supposed to be "async-safe".
That means write is ok, but not exit or fprintf.

Also wondering whether C11 or C++11 threads on all platforms would be simpler than relying on a pthreads layer for Windows.

Regards Phil


More information about the Libwebsockets mailing list