Commit 51d208e
Allow bpython/bpdb outside main thread
Because [signal.signal][1] is only allowed to be called from the main
thread, if you use bpdb in another thread it will crash upon entering
the repl. By ignoring the resulting `ValueError` the show can go on.
[1]: https://docs.python.org/3/library/signal.html#signal.signal1 parent 6be4207 commit 51d208e
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
534 | | - | |
535 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
536 | 540 | | |
537 | 541 | | |
538 | 542 | | |
| |||
545 | 549 | | |
546 | 550 | | |
547 | 551 | | |
548 | | - | |
549 | | - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
550 | 559 | | |
551 | 560 | | |
552 | 561 | | |
| |||
0 commit comments