fix: guard SIGPIPE ignore with #ifndef _WIN32

SIGPIPE is not available on Windows (MSYS2 UCRT64), causing a build
failure. The signal handling is only needed on POSIX systems.
This commit is contained in:
2026-07-13 14:03:26 +08:00
parent ea78558a31
commit 288e9050e1
+2
View File
@@ -155,7 +155,9 @@ int main(int argc, char *argv[])
// Ignore SIGPIPE so that writing to a render-worker process that has
// already crashed/closed does not terminate the main application. QProcess
// will report the failure through its normal error path instead.
#if !defined(_WIN32)
signal(SIGPIPE, SIG_IGN);
#endif
// Set application metadata
QCoreApplication::setOrganizationName("oakvideoeditor.org");