Quantcast
Channel: Code happens
Viewing all articles
Browse latest Browse all 53

Public service announcement: signals implies reentrant code even in Python

$
0
0
This is a tiny PSA prompted by my digging into a deadlock condition in the Launchpad application servers. We were observing a small number of servers stopping cold when we did log rotation, with no particularly rhyme or reason. tl;dr: do not call any non-reentrant code from a Python signal handler. This includes the signal [...]

Viewing all articles
Browse latest Browse all 53