aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c2
-rw-r--r--OpenAL32/alError.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 3a24f5e9..0f7d48c3 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1001,7 +1001,7 @@ static void alcSetError(ALCdevice *device, ALCenum errorCode)
if(IsDebuggerPresent())
DebugBreak();
#elif defined(SIGTRAP)
- kill(getpid(), SIGTRAP);
+ raise(SIGTRAP);
#endif
}
diff --git a/OpenAL32/alError.c b/OpenAL32/alError.c
index f1c157f5..56f4248e 100644
--- a/OpenAL32/alError.c
+++ b/OpenAL32/alError.c
@@ -52,7 +52,7 @@ ALvoid alSetError(ALCcontext *Context, ALenum errorCode)
if(IsDebuggerPresent())
DebugBreak();
#elif defined(SIGTRAP)
- kill(getpid(), SIGTRAP);
+ raise(SIGTRAP);
#endif
}
CompExchangeInt(&Context->LastError, AL_NO_ERROR, errorCode);