mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 15:50:26 +08:00
linux: Use correct handler argument for client FDs
This worked before because getopt also accepts prefixes of known options. Change-Id: I0a479ad17954c541e84dc77230abcff19e8fae72 Reviewed-on: https://chromium-review.googlesource.com/1173439 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
parent
e6f26587e4
commit
606368a393
@ -199,7 +199,7 @@ bool CrashpadClient::StartHandlerForClient(
|
|||||||
std::vector<std::string> argv = BuildHandlerArgvStrings(
|
std::vector<std::string> argv = BuildHandlerArgvStrings(
|
||||||
handler, database, metrics_dir, url, annotations, arguments);
|
handler, database, metrics_dir, url, annotations, arguments);
|
||||||
|
|
||||||
argv.push_back(FormatArgumentInt("initial-client", socket));
|
argv.push_back(FormatArgumentInt("initial-client-fd", socket));
|
||||||
|
|
||||||
return DoubleForkAndExec(argv, socket, true, nullptr);
|
return DoubleForkAndExec(argv, socket, true, nullptr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user