* included in the distribution.
*
* $RCSfile: hugs.c,v $
- * $Revision: 1.77 $
- * $Date: 2000/06/23 12:09:01 $
+ * $Revision: 1.78 $
+ * $Date: 2000/06/28 10:42:17 $
* ------------------------------------------------------------------------*/
#include <setjmp.h>
{
HugsBreakAction tmp = currentBreakAction;
currentBreakAction = newAction;
+
+# if defined(mingw32_TARGET_OS)
+ /* Be wierd. You can't longjmp in a signal handler,
+ and posix signals are not supported.
+ */
+ if (newAction == HugsRtsInterrupt) {
+ setHandler ( handler_RtsInterrupt );
+ } else {
+ signal(SIGINT,SIG_IGN);
+ }
+# else
+ /* do it Right */
switch (newAction) {
case HugsIgnoreBreak:
setHandler ( handler_IgnoreBreak ); break;
default:
internal("setBreakAction");
}
+# endif
+
return tmp;
}