Merge branch 'master' of github.com:shadowsocks/shadowsocks-android

Conflicts:
	jni/shadowsocks/local.c
This commit is contained in:
Max Lv
2012-12-28 10:09:14 +08:00
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
APP_PLATFORM = android-9
NDK_TOOLCHAIN_VERSION = clang3.1
+5
View File
@@ -603,6 +603,11 @@ int main (int argc, char **argv)
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
} else {
pid_t pid = getpid();
FILE *file = fopen("/data/data/com.github.shadowsocks/shadowsocks.pid", "w");
fprintf(file, "%d", pid);
fclose(file);
}
_server = strdup(server);