mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'master' of https://github.com/irungentoo/toxcore
This commit is contained in:
commit
30e86c5eb0
|
@ -30,6 +30,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
// toxcore
|
||||
#include "../../../toxcore/LAN_discovery.h"
|
||||
|
@ -156,8 +157,6 @@ static void daemonize(LOG_BACKEND log_backend, char *pid_file_path)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
// Change the file mode mask
|
||||
umask(0);
|
||||
|
||||
// Change the current working directory
|
||||
if ((chdir("/")) < 0) {
|
||||
|
@ -175,6 +174,7 @@ static void daemonize(LOG_BACKEND log_backend, char *pid_file_path)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
umask(077);
|
||||
char *cfg_file_path;
|
||||
LOG_BACKEND log_backend;
|
||||
bool run_in_foreground;
|
||||
|
|
Loading…
Reference in New Issue
Block a user