[daemon] complete pid handling