diff options
author | Elliott Hughes <enh@google.com> | 2014-11-19 15:16:51 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-11-19 15:49:09 -0800 |
commit | 432f645887466ed7099addb20fa8915c8a29fcab (patch) | |
tree | 58a3a9284e0ae86cfef88b2f4584e9fba3d8ead5 /libc/stdio/findfp.c | |
parent | 047d943ee90c7582c08bafe6c2a6de132f12502f (diff) | |
download | bionic-432f645887466ed7099addb20fa8915c8a29fcab.zip bionic-432f645887466ed7099addb20fa8915c8a29fcab.tar.gz bionic-432f645887466ed7099addb20fa8915c8a29fcab.tar.bz2 |
Fix flockfile(3) and friends for stdin/stdout/stderr too.
stdin/stdout/stderr are special; their mutexes are initialized by
__sinit. There's no unit test for this, because __sinit has already
been called by the time the first unit test runs, but you could
reproduce this failure with a trivial main() that calls flockfile
or ftrylockfile on one of the standard streams before otherwise
using stdio.
Bug: 18208568
(cherry picked from commit c48c3e4bb3d1665f3e9fa2785daafa72dfe59399)
Change-Id: Ia0c43ed4ac69daea8152aee9516415a6e3f8a042
Diffstat (limited to 'libc/stdio/findfp.c')
0 files changed, 0 insertions, 0 deletions