Merge "Make server port option work on windows"
This commit is contained in:
commit
a034362be4
1 changed files with 3 additions and 2 deletions
|
|
@ -1125,10 +1125,11 @@ int launch_server(int server_port)
|
||||||
|
|
||||||
/* get path of current program */
|
/* get path of current program */
|
||||||
GetModuleFileName( NULL, program_path, sizeof(program_path) );
|
GetModuleFileName( NULL, program_path, sizeof(program_path) );
|
||||||
|
char args[64];
|
||||||
|
snprintf(args, sizeof(args), "adb -P %d fork-server server", server_port);
|
||||||
ret = CreateProcess(
|
ret = CreateProcess(
|
||||||
program_path, /* program path */
|
program_path, /* program path */
|
||||||
"adb fork-server server",
|
args,
|
||||||
/* the fork-server argument will set the
|
/* the fork-server argument will set the
|
||||||
debug = 2 in the child */
|
debug = 2 in the child */
|
||||||
NULL, /* process handle is not inheritable */
|
NULL, /* process handle is not inheritable */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue