GNOME Bugzilla – Bug 733814
gst-launch: On W32 gst-launch does not finish correctly after getting SIGINT
Last modified: 2014-07-28 07:23:00 UTC
Currently SIGINT handler is UNIX-only, because there's no SIGINT on W32. An alternative for W32 is needed.
Created attachment 281808 [details] [review] Support SIGINT (Ctrl+C) on W32 W32 has no SIGINT, but it does have SetConsoleCtrlHandler(), which sets up a handler for Ctrl+C.
Note that W32 creates a new thread to run the handler function. Hopefully, the function that the handler calls is thread-safe...
On Unix the signal handlers are called from a random thread too, so that should be fine. commit 35fc309544099b52a46267ffbf85c1d6a3fcf2b5 Author: Руслан Ижбулатов <lrn1986@gmail.com> Date: Sun Jul 27 02:37:08 2014 +0000 gst-launch: Support SIGINT (Ctrl+C) on W32 W32 has no SIGINT, but it does have SetConsoleCtrlHandler(), which sets up a handler for Ctrl+C. https://bugzilla.gnome.org/show_bug.cgi?id=733814