Revert "WAR for some AOSPs"

This reverts commit 6bdd92798c.
This commit is contained in:
Max Lv
2015-11-15 10:36:05 +08:00
parent 6bdd92798c
commit 69e5392664
+2 -7
View File
@@ -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);