Skip to content

Commit ca67c8e

Browse files
committed
Bug: Switched to using _Exit which correctly sets the exit code without calling static destructors [Fixes #125]
1 parent 0f8e91b commit ca67c8e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELIST.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# pluginval Change List
22

3+
### 1.0.4
4+
- Fixed incorrect "ALL TESTS PASSED" message when validating out of process [#125]
5+
36
### 1.0.3
47
- Fix VST3 host bus issue
58

Source/CommandLine.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ inline void logAndFlush (const juce::String& m)
6060
#if JUCE_MAC
6161
static void kill9WithSomeMercy (int signal)
6262
{
63-
juce::Logger::writeToLog ("pluginval received " + juce::String(::strsignal(signal)) + ", exiting immediately");
64-
kill (getpid(), SIGKILL);
63+
juce::Logger::writeToLog ("pluginval received " + juce::String(::strsignal(signal)) + ", exiting immediately");
64+
65+
// Use std::_Exit here instead of kill as kill doesn't seem to set the exit code of the process so is picked up as a "pass" in the host process
66+
std::_Exit (SIGKILL);
6567
}
6668

6769
// Avoid showing the macOS crash dialog, which can cause the process to hang

0 commit comments

Comments
 (0)