This statement should be moved up, just after `pid = int(fp_.read())`. The idea here is that `kill -0` has no effect, but will raise an `OSError` if signaling an inexistent process, which would be an indicator for a stale pidfile.