From 642b9ba141e5dafcf53359cd3923678f20279172 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 21 Mar 2004 04:27:21 +0000 Subject: [PATCH] failed PtraceAttach isn't fatal --- stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp b/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp index 9e6d0b97d0..9a41f5abd6 100644 --- a/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp +++ b/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp @@ -166,7 +166,11 @@ bool GetThreadBacktraceContext( int ThreadID, BacktraceContext *ctx ) * it's us that attached, we will. */ if( PtraceAttach( ThreadID ) == -1 ) { - RAGE_ASSERT_M( errno == EPERM, ssprintf( "%s", strerror(errno) ) ); + if( errno != EPERM ) + { + CHECKPOINT_M( ssprintf( "%s (pid %i tid %i locking tid %i)", strerror(errno), getpid(), GetCurrentThreadId(), ThreadID ) ); + return false; + } } user_regs_struct regs;