diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp index 5c696433fdb..d434c8eb11e 100644 --- a/src/corelib/io/qprocess_unix.cpp +++ b/src/corelib/io/qprocess_unix.cpp @@ -283,8 +283,8 @@ struct QChildProcess if (workingDirectory >= 0) close(workingDirectory); - restoreThreadCancellations(); restoreSignalMask(); + restoreThreadCancellations(); } void maybeBlockSignals() noexcept