The R Project SVN R

Rev

Rev 8872 | Rev 42642 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8872 Rev 17349
Line 12... Line 12...
12
#include <config.h>
12
#include <config.h>
13
#endif
13
#endif
14
 
14
 
15
#include <windows.h>
15
#include <windows.h>
16
#include "psignal.h"
16
#include "psignal.h"
17
 
-
 
-
 
17
extern int UserBreak;
18
 
18
 
19
/* Define stuff ************************************************************ */
19
/* Define stuff ************************************************************ */
20
#ifndef TRUE
20
#ifndef TRUE
21
  #define TRUE 1
21
  #define TRUE 1
22
#endif
22
#endif
Line 148... Line 148...
148
	tried to raise a signal in the appropriate thread using
148
	tried to raise a signal in the appropriate thread using
149
	SuspendThread/GetThreadContext/setting Eip to the signal handler/
149
	SuspendThread/GetThreadContext/setting Eip to the signal handler/
150
	SetThreadContext/ResumeThread but I had success only under NT.
150
	SetThreadContext/ResumeThread but I had success only under NT.
151
    */    
151
    */    
152
    raise(SIGBREAK);
152
    raise(SIGBREAK);
-
 
153
    /* Seems that SIGBREAK is not working under 1,4,0, so do it via
-
 
154
       a semaphore, as RGui does */
-
 
155
    UserBreak = 1;
153
    ret = TRUE;
156
    ret = TRUE;
154
    break;
157
    break;
155
  default:
158
  default:
156
    ret = FALSE;
159
    ret = FALSE;
157
  }
160
  }