summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--adb/adb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/adb/adb.c b/adb/adb.c
index 1834472fe..c939ef028 100644
--- a/adb/adb.c
+++ b/adb/adb.c
@@ -1125,10 +1125,11 @@ int launch_server(int server_port)
1125 1125
1126 /* get path of current program */ 1126 /* get path of current program */
1127 GetModuleFileName( NULL, program_path, sizeof(program_path) ); 1127 GetModuleFileName( NULL, program_path, sizeof(program_path) );
1128 1128 char args[64];
1129 snprintf(args, sizeof(args), "adb -P %d fork-server server", server_port);
1129 ret = CreateProcess( 1130 ret = CreateProcess(
1130 program_path, /* program path */ 1131 program_path, /* program path */
1131 "adb fork-server server", 1132 args,
1132 /* the fork-server argument will set the 1133 /* the fork-server argument will set the
1133 debug = 2 in the child */ 1134 debug = 2 in the child */
1134 NULL, /* process handle is not inheritable */ 1135 NULL, /* process handle is not inheritable */