There's ``utils.signal_pid()`` for this.