mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 06:35:57 -05:00
Get wrong pid when daemonizing
This commit is contained in:
parent
5383d1c1ca
commit
0d72198594
@ -95,9 +95,9 @@ int os_init(int foreground, char *runas) {
|
||||
DPRINTF(E_LOG,L_MAIN,"fdopen: %s\n",strerror(errno));
|
||||
}
|
||||
/* just to be on the safe side... */
|
||||
_os_daemon_start();
|
||||
fprintf(pid_fp,"%d\n",getpid());
|
||||
fclose(pid_fp);
|
||||
_os_daemon_start();
|
||||
}
|
||||
|
||||
// Drop privs here
|
||||
|
Loading…
Reference in New Issue
Block a user