From 013d08805a3be06d8de3af77267cd76f2011a935 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 8 May 1999 10:44:43 +0000 Subject: [PATCH] Stop winelib programs on fault instead of endless faultlooping. --- loader/signal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loader/signal.c b/loader/signal.c index 59c0759f501..97af53c725c 100644 --- a/loader/signal.c +++ b/loader/signal.c @@ -282,6 +282,10 @@ static HANDLER_DEF(SIGNAL_fault) if (fnWINE_Debugger) fnWINE_Debugger( signal, HANDLER_CONTEXT ); + else { + MSG("stopping pid %d due to unhandled %s.\n",getpid(),fault); + kill(getpid(),SIGSTOP); + } }