Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad74fa6

Browse files
committed
In the Unix version, arrange for sigcheck() to be called via
Py_AddPendingCall(). This avoids having to call sigcheck() in the ticker code in ceval.c's main interpreter loop.
1 parent 1aa1483 commit ad74fa6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Parser/intrcheck.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ PyErr_SetInterrupt()
137137
interrupted = 1;
138138
}
139139

140+
extern int sigcheck();
141+
140142
/* ARGSUSED */
141143
static RETSIGTYPE
142144
#ifdef _M_IX86
@@ -161,6 +163,7 @@ intcatcher(sig)
161163
break;
162164
}
163165
signal(SIGINT, intcatcher);
166+
Py_AddPendingCall(sigcheck, NULL);
164167
}
165168

166169
void

0 commit comments

Comments
 (0)