Commit bd53348
Pietro Albini
Catch InterruptedError while interacting with sockets in the IPC
When someone sends a signal to a process, every system call running in
it simply interrupts for reasons. Python 3.5 automatically retries the
call, but Python 3.4 raises an InterruptedError.
This commit makes sure if a signal is received on Python 3.4 and
reading/writing on sockets in the IPC server is interrupted, the call
is retried.1 parent f200524 commit bd53348
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| |||
250 | 257 | | |
251 | 258 | | |
252 | 259 | | |
253 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
254 | 268 | | |
255 | 269 | | |
256 | 270 | | |
| |||
0 commit comments