Browse Source

Revert "WAR for some AOSPs"

This reverts commit 6bdd92798c.
pull/465/head
Max Lv 9 years ago
parent
commit
69e5392664
1 changed files with 2 additions and 7 deletions
  1. 9
      src/utils.c

9
src/utils.c

@ -292,8 +292,8 @@ void usage()
void daemonize(const char * path)
{
#ifndef __MINGW32__
/* Our process ID */
pid_t pid;
/* Our process ID and Session ID */
pid_t pid, sid;
/* Fork off the parent process */
pid = fork();
@ -314,10 +314,6 @@ void daemonize(const char * path)
exit(EXIT_SUCCESS);
}
#ifndef ANDROID
/* Our session ID */
pid_t sid;
/* Change the file mode mask */
umask(0);
@ -335,7 +331,6 @@ void daemonize(const char * path)
/* Log the failure */
exit(EXIT_FAILURE);
}
#endif
/* Close out the standard file descriptors */
close(STDIN_FILENO);

Loading…
Cancel
Save