Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e90714a authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am a034362b: Merge "Make server port option work on windows"

* commit 'a034362b':
  Make server port option work on windows
parents 13aa2a4e a034362b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1125,10 +1125,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 */