The pids written to /var/hgd/hgd-playd.pid and /var/hgd/hgd-netd.pid are incorrect.
The call to hgd_daemonise() seems changes the pid of the process. This results in hgd-admin not working as expected.
/* Do this before daemonising so we can see its output if it fails. */
if (hgd_write_pid_file() != HGD_OK) {
DPRINTF(HGD_D_ERROR, "Can't write PID away");
return (HGD_FAIL);
}
/* alright, everything looks good, lets be a daemon and background */
if (background)
hgd_daemonise();
hgd_listen_loop();
The pids written to /var/hgd/hgd-playd.pid and /var/hgd/hgd-netd.pid are incorrect.
The call to hgd_daemonise() seems changes the pid of the process. This results in hgd-admin not working as expected.
Testing on Ubuntu 11.10 Oneiric.