mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-02 18:42:09 -05:00
Running Qt code in a signal handler is not safe. Per the Qt docs, we instead create a pair of sockets and a QSocketNotifier so that the signal handler can notify the main thread which can process the exit request without risk. Reference: https://doc.qt.io/archives/qt-6.3/unix-signals.html Reference: https://man7.org/linux/man-pages/man7/signal-safety.7.html
84 KiB
84 KiB