Browse Source

Changed Process:terminate() to exit with an error code of 1 instead of 0.

tags/2021-05-28
jules 12 years ago
parent
commit
c2afa62696
4 changed files with 4 additions and 5 deletions
  1. +1
    -2
      modules/juce_core/native/juce_android_Threads.cpp
  2. +1
    -1
      modules/juce_core/native/juce_linux_Threads.cpp
  3. +1
    -1
      modules/juce_core/native/juce_mac_Threads.mm
  4. +1
    -1
      modules/juce_core/native/juce_win32_Threads.cpp

+ 1
- 2
modules/juce_core/native/juce_android_Threads.cpp View File

@@ -64,8 +64,7 @@ void Process::setPriority (ProcessPriority prior)
void Process::terminate()
{
// TODO
exit (0);
std::exit (EXIT_FAILURE);
}
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()


+ 1
- 1
modules/juce_core/native/juce_linux_Threads.cpp View File

@@ -54,7 +54,7 @@ void Process::setPriority (const ProcessPriority prior)
void Process::terminate()
{
exit (0);
std::exit (EXIT_FAILURE);
}
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()


+ 1
- 1
modules/juce_core/native/juce_mac_Threads.mm View File

@@ -60,7 +60,7 @@ void Process::lowerPrivilege()
void Process::terminate()
{
exit (0);
std::exit (EXIT_FAILURE);
}
void Process::setPriority (ProcessPriority)


+ 1
- 1
modules/juce_core/native/juce_win32_Threads.cpp View File

@@ -322,7 +322,7 @@ void Process::terminate()
#endif
// bullet in the head in case there's a problem shutting down..
ExitProcess (0);
ExitProcess (1);
}
bool juce_isRunningInWine()


Loading…
Cancel
Save