Rich Felker
426a0e2912
fix fclose of permanent (stdin/out/err) streams
...
this fixes a bug reported by Nuno Gonçalves. previously, calling
fclose on stdin or stdout resulted in deadlock at exit time, since
__stdio_exit attempts to lock these streams to flush/seek them, and
has no easy way of knowing that they were closed.
conceptually, leaving a FILE stream locked on fclose is valid since,
in the abstract machine, it ceases to exist. but to satisfy the
implementation-internal assumption in __stdio_exit that it can access
these streams unconditionally, we need to unlock them.
it's also necessary that fclose leaves permanent streams in a state
where __stdio_exit will not attempt any further operations on them.
fortunately, the call to fflush already yields this property.
2015-09-09 04:31:07 +00:00
..
2011-02-12 00:22:29 -05:00
2015-06-16 07:11:19 +00:00
2012-10-24 21:16:06 -04:00
2014-06-06 15:42:42 -04:00
2012-12-10 18:31:39 -05:00
2011-03-28 01:14:44 -04:00
2015-02-13 01:10:11 -05:00
2015-06-16 07:11:19 +00:00
2015-06-13 20:53:02 +00:00
2011-04-02 13:55:54 -04:00
2015-06-13 20:53:02 +00:00
2015-02-23 18:53:01 -05:00
2012-11-08 16:39:41 -05:00
2015-05-29 00:04:36 -04:00
2014-07-16 20:44:22 -04:00
2015-05-29 00:04:36 -04:00
2011-02-20 17:19:37 -05:00
2011-02-12 00:22:29 -05:00
2012-09-06 22:44:55 -04:00
2012-09-06 23:27:55 -04:00
2012-06-17 21:24:58 -04:00
2015-09-09 04:31:07 +00:00
2012-10-24 23:16:41 -04:00
2012-10-24 23:16:41 -04:00
2015-06-16 07:11:19 +00:00
2012-10-27 19:52:40 -04:00
2013-12-12 05:09:18 +00:00
2012-09-06 22:44:55 -04:00
2014-09-04 22:21:17 -04:00
2015-06-16 06:10:29 +00:00
2012-11-08 16:39:41 -05:00
2012-10-24 23:16:41 -04:00
2011-07-30 08:02:14 -04:00
2015-06-16 07:11:19 +00:00
2015-06-13 20:53:02 +00:00
2012-09-06 22:44:55 -04:00
2012-10-27 19:52:40 -04:00
2014-09-04 22:21:17 -04:00
2015-06-16 06:10:29 +00:00
2015-06-16 06:10:29 +00:00
2014-09-04 22:21:17 -04:00
2012-11-08 16:39:41 -05:00
2013-04-06 17:15:58 -04:00
2011-04-02 13:54:55 -04:00
2011-02-12 00:22:29 -05:00
2014-02-07 00:57:50 -05:00
2014-09-19 12:28:45 -04:00
2014-08-23 23:35:10 -04:00
2015-06-16 06:10:29 +00:00
2012-09-06 22:44:55 -04:00
2014-09-04 22:21:17 -04:00
2013-04-05 23:20:28 -07:00
2012-06-02 21:20:21 -04:00
2012-10-27 19:52:40 -04:00
2011-03-28 01:14:44 -04:00
2011-02-12 00:22:29 -05:00
2015-04-04 10:53:09 -04:00
2012-09-06 22:44:55 -04:00
2012-11-08 16:39:41 -05:00
2012-07-04 12:18:46 -04:00
2012-11-08 16:39:41 -05:00
2012-11-08 16:39:41 -05:00
2015-06-16 07:11:19 +00:00
2015-06-16 07:11:19 +00:00
2015-06-16 07:11:19 +00:00
2015-06-16 07:11:19 +00:00
2012-11-08 16:39:41 -05:00
2012-06-20 09:27:28 -04:00
2013-09-01 17:02:35 -04:00
2012-09-06 22:44:55 -04:00
2012-06-02 21:20:21 -04:00
2012-10-27 19:52:40 -04:00
2011-03-28 01:14:44 -04:00
2011-02-12 00:22:29 -05:00
2011-05-01 20:12:51 -04:00
2012-07-04 12:21:22 -04:00
2012-11-08 16:39:41 -05:00
2012-11-08 16:39:41 -05:00
2014-05-29 21:01:32 -04:00
2014-05-29 21:01:32 -04:00
2011-02-22 17:11:35 -05:00
2013-04-05 23:20:28 -07:00
2012-09-06 22:44:55 -04:00
2011-04-05 12:25:31 -04:00
2011-04-05 12:25:31 -04:00
2012-09-06 22:44:55 -04:00
2012-09-06 22:44:55 -04:00
2012-09-06 22:44:55 -04:00
2013-04-05 23:20:28 -07:00
2014-07-16 21:32:06 -04:00
2014-07-16 21:32:06 -04:00
2014-07-16 21:32:06 -04:00
2013-12-12 05:09:18 +00:00
2013-12-12 05:09:18 +00:00
2015-08-09 22:51:09 +00:00
2014-06-06 03:17:47 -04:00
2014-05-29 21:01:32 -04:00
2015-05-29 00:04:36 -04:00
2015-06-16 06:10:29 +00:00
2014-06-04 03:39:22 -04:00
2012-09-06 22:44:55 -04:00
2014-12-18 17:41:34 -05:00
2014-01-08 22:52:26 +01:00
2015-06-13 05:17:16 +00:00
2015-06-13 05:17:16 +00:00
2012-09-06 22:44:55 -04:00
2013-04-05 23:20:28 -07:00
2012-11-08 16:39:41 -05:00
2012-09-06 22:44:55 -04:00
2013-04-05 23:20:28 -07:00
2012-11-08 16:39:41 -05:00
2013-04-05 23:20:28 -07:00
2012-09-06 22:44:55 -04:00
2013-04-05 23:20:28 -07:00
2012-09-06 22:44:55 -04:00
2013-04-05 23:20:28 -07:00