bugfix: initialize pid (as read from pidfile) to zero