Commit 3bf1f7c
committed
Move signal handler attachment back to main body. Signals cannot be
attached from threads in Python. While it is impossible to guarantee
that any piece of Python code is not called from a thread (one can always
import this class from the run method of a thread), this reduces the
likelihood of that happening. This commit also adds a clear error message
stating that psij has to be imported from the main thread.1 parent bc2bde5 commit 3bf1f7c
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
0 commit comments