Gui: Use C99 _Exit instead of not as portable POSIX _exit.

The actual fix here is for a compile error which started appearing as an
error due to `unistd.h` include being included implicitly from
`boost::signals`, which FastSignals does not do anymore.

```
Error:
/Users/runner/work/FreeCAD/FreeCAD/src/Gui/Dialogs/DlgVersionMigrator.cpp:366:5:
error: use of undeclared identifier '_exit'
```
This commit is contained in:
Joao Matos
2025-10-29 22:08:48 +00:00
committed by Kacper Donat
parent c5489e0f0a
commit 36d432e2cc

View File

@@ -37,6 +37,7 @@
#include <set>
#include <string>
#include <ranges>
#include <cstdlib>
#include "DlgVersionMigrator.h"
#include "ui_DlgVersionMigrator.h"
@@ -363,7 +364,7 @@ void DlgVersionMigrator::restart(const QString &message)
}
});
QCoreApplication::exit(0);
_exit(0); // No really. Die.
_Exit(0); // No really. Die.
}