Make server port option work on windows
The server port command line option do not work on windows, need pass -P option to child process. Change-Id: Ibb3f0a926fae8e17c75fccbd4bb3a33318fffe9e
This commit is contained in:
parent
60e7d49557
commit
a09558c2e2
|
@ -1077,10 +1077,11 @@ int launch_server(int server_port)
|
|||
|
||||
/* get path of current program */
|
||||
GetModuleFileName( NULL, program_path, sizeof(program_path) );
|
||||
|
||||
char args[64];
|
||||
snprintf(args, sizeof(args), "adb -P %d fork-server server", server_port);
|
||||
ret = CreateProcess(
|
||||
program_path, /* program path */
|
||||
"adb fork-server server",
|
||||
args,
|
||||
/* the fork-server argument will set the
|
||||
debug = 2 in the child */
|
||||
NULL, /* process handle is not inheritable */
|
||||
|
|
Loading…
Reference in New Issue