commit | 788302a1e8520808a33086fc5cdf16af842d428f | [log] [tgz] |
---|---|---|
author | Daniele Di Proietto <ddiproietto@google.com> | Wed Feb 23 17:13:53 2022 +0000 |
committer | Daniele Di Proietto <ddiproietto@google.com> | Thu Feb 24 13:16:42 2022 +0000 |
tree | da79babec42e6b2ec04cb0c5f15656594f203834 | |
parent | 9e6a0874844385eadb0ae2387cec77a827cf1565 [diff] |
Support InputMode::kDevNull in Subprocess Subprocess always creates a pipe for stdin and passes it to the child process. This can sometimes be undesirable because (in a future commit) the child process might not have SELinux permissions to read from a pipe. This commit implements a new InputMode::kDevNull, which does not create a pipe for stdin. InputMode::kDevNull should always be used when args.input.empty(), but existing callers might be subtly relying on the pipe, so this commit doesn't change the default behavior. Tested: unit tests. **N.B.:** I haven't tested this on windows. Bug: 219393750 Change-Id: Ifd900f8be595439d12d6632c26426291c9064001
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.