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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user