Browse Source

interposer: add 'exit' (redirects to '_exit')

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
809b9cba2f
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      source/interposer/interposer-safe.cpp

+ 9
- 0
source/interposer/interposer-safe.cpp View File

@@ -66,6 +66,15 @@ int posix_spawnp(pid_t*, const char*, const posix_spawn_file_actions_t*, const p

// -----------------------------------------------------------------------

CARLA_EXPORT
void exit(int status)
{
carla_stderr2("Carla prevented a plugin from calling 'exit', redirecting to '_exit' instead, bad plugin!");
_exit(status);
}

// -----------------------------------------------------------------------

CARLA_EXPORT
void gtk_init(int*, char***)
{


Loading…
Cancel
Save