File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,15 @@ Operating System Utilities
130130 Returns ``1`` if a :c:macro:`!SIGINT` has occurred and clears the signal flag,
131131 or ``0`` otherwise.
132132
133+ This function is async-signal-safe.
133134 The caller must hold an :term:`attached thread state`.
134135
136+ In most cases, you should prefer :c:func:`PyErr_CheckSignals` over this function.
137+ :c:func:`!PyErr_CheckSignals` invokes the appropriate signal handlers
138+ for all pending signals, allowing Python code to handle the signal properly.
139+ This function only detects :c:macro:`!SIGINT` and does not invoke any Python
140+ signal handlers.
141+
135142
136143.. c:function:: wchar_t* Py_DecodeLocale(const char* arg, size_t *size)
137144
Original file line number Diff line number Diff line change @@ -2025,7 +2025,7 @@ _PyOS_InterruptOccurred(PyThreadState *tstate)
20252025}
20262026
20272027
2028- // The caller must hold the GIL
2028+ // The caller must to hold the GIL
20292029int
20302030PyOS_InterruptOccurred (void )
20312031{
You can’t perform that action at this time.
0 commit comments