Skip to content

Commit

Permalink
Bug: Switched to using _Exit which correctly sets the exit code witho…
Browse files Browse the repository at this point in the history
…ut calling static destructors [Fixes #125]
  • Loading branch information
drowaudio committed Jun 6, 2024
1 parent 0f8e91b commit ca67c8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# pluginval Change List

### 1.0.4
- Fixed incorrect "ALL TESTS PASSED" message when validating out of process [#125]

### 1.0.3
- Fix VST3 host bus issue

Expand Down
6 changes: 4 additions & 2 deletions Source/CommandLine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ inline void logAndFlush (const juce::String& m)
#if JUCE_MAC
static void kill9WithSomeMercy (int signal)
{
juce::Logger::writeToLog ("pluginval received " + juce::String(::strsignal(signal)) + ", exiting immediately");
kill (getpid(), SIGKILL);
juce::Logger::writeToLog ("pluginval received " + juce::String(::strsignal(signal)) + ", exiting immediately");

// 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
std::_Exit (SIGKILL);
}

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

0 comments on commit ca67c8e

Please sign in to comment.