diff options
| author | Elliott Hughes <enh@google.com> | 2021-10-26 17:31:03 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2021-10-28 09:55:27 -0700 |
| commit | 7a2386bf89f9bfd4e53eba9304e4239b3fdf0d06 (patch) | |
| tree | 7a3186788e97c544e72196fd0ea0f584538e6a6f /libc/malloc_hooks/tests/malloc_hooks_tests.cpp | |
| parent | d8854293d1894bc60c2164de11127a66e07fcd56 (diff) | |
Don't open /dev/null until we need to.
This saves a couple of syscalls in the common case, and also lets static
binaries run in a chroot without /dev/null as long as
stdin/stdout/stderr are actually connected to something (which the
toybox maintainer tried to do).
Test: manual with strace
Change-Id: Ic9a28896a07304a3bd428acfd9ddca9d22015f6e
Diffstat (limited to 'libc/malloc_hooks/tests/malloc_hooks_tests.cpp')
0 files changed, 0 insertions, 0 deletions
