Use raise(SIGTRAP) instead of kill(getpid(),SIGTRAP)

This commit is contained in:
Chris Robinson
2011-09-30 20:46:18 -07:00
parent bf19186223
commit bed37a148c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1001,7 +1001,7 @@ static void alcSetError(ALCdevice *device, ALCenum errorCode)
if(IsDebuggerPresent())
DebugBreak();
#elif defined(SIGTRAP)
kill(getpid(), SIGTRAP);
raise(SIGTRAP);
#endif
}
+1 -1
View File
@@ -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);