correct call to daemon_get_pid