Christopher Ferris efc134dba3 Only close stdin/stdout/stderr for debug malloc.
The debug malloc code unconditionally closes stdin/stdout/stderr,
which means that other atexit functions cannot use them. Only
close these if there is a debug malloc final function to call.

This doesn't appear to be a problem on most normal applications or the
atexit_exit bionic unit test would be failing. However, if you
enable stat dumping in jemalloc, nothing prints. Most likely trying
to add an atexit function from within libc is causing that atexit
to run after the debug malloc atexit function.

Change-Id: I963720d4ccaaa511e44af07a7461f17eb3f84e8e
2015-09-03 17:45:33 -07:00
..
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-08-26 14:48:55 -07:00
2015-09-02 17:23:31 -07:00
2015-08-18 15:09:00 -07:00
2015-07-27 11:04:58 -07:00
2015-08-25 12:46:33 +01:00
2015-08-26 14:48:55 -07:00
2015-08-28 20:23:52 -07:00
2015-08-26 14:48:55 -07:00
2015-05-07 15:12:24 -07:00