Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Source/WTF/wtf/posix/ThreadingPOSIX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,13 @@ void Thread::signalHandlerSuspendResume(int, siginfo_t*, void* ucontext)
void Thread::initializePlatformThreading()
{
if (!g_wtfConfig.isUserSpecifiedThreadSuspendResumeSignalConfigured) {
#if PLATFORM(WPE)
// SIGUSR1 is used by GStreamer for pipeline debug dumps or mem leak tracers.
// Use a real-time signal instead so that sending SIGUSR1 to WPEWebProcess reaches GStreamer.
g_wtfConfig.sigThreadSuspendResume = SIGRTMIN;
#else
g_wtfConfig.sigThreadSuspendResume = SIGUSR1;
#endif
if (const char* string = getenv("JSC_SIGNAL_FOR_GC")) {
int32_t value = 0;
if (sscanf(string, "%d", &value) == 1)
Expand Down