Skip to content

Commit 8fa88a5

Browse files
committed
Use os.kill() on every platform but Windows
1 parent c9c5bf2 commit 8fa88a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3129,7 +3129,7 @@ def cmdloop(self):
31293129
self.process_payload(payload)
31303130

31313131
def send_interrupt(self):
3132-
if hasattr(signal, "pthread_kill"):
3132+
if sys.platform != "win32":
31333133
# On Unix, send a SIGINT to the remote process, which interrupts IO
31343134
# and makes it raise a KeyboardInterrupt on the main thread when
31353135
# PyErr_CheckSignals is called or the eval loop regains control.

0 commit comments

Comments
 (0)