зеркало из https://github.com/mozilla/gecko-dev.git
67edebb322
`PrintUsageThenExit(code)` was supposed to exit when `code` was not zero, but: - The name didn't reflect that, so it was confusing that `PrintUsageThenExit(0)` would *not* exit. - The implementation in the Base Profiler exited anyway! This caused issues with some legacy code that still used the now-removed "threads" feature. This patch renames the function to just `PrintUsage()` and never exits, leaving the caller to invoke `exit(code)` as needed -- with the added benefit that it's possible to exit with a zero code, useful in cases where an exit is not actually an error. Differential Revision: https://phabricator.services.mozilla.com/D135666 |
||
---|---|---|
.. | ||
android | ||
baseprofiler | ||
build | ||
linker | ||
misc | ||
static | ||
tests | ||
moz.build | ||
mozglue.rc |