Daniel Bertalan
a1dfa1efb2
LibC: Flush all file streams on exit
...
The POSIX standard specifies the following:
> If the main() function returns to its original caller, or if the
> exit() function is called, all open files are closed (hence all output
> streams are flushed) before program termination.
This means that flushing `stdin` and `stdout` only is not enough, as the
program might have pending writes in other file buffers too.
Now that we support `fflush(nullptr)`, we call that in `exit()` to flush
all streams. This fixes one of bash's generated headers not being
written to disk.
2022-01-16 14:59:21 -08:00
..
2021-12-24 05:26:21 -08:00
2022-01-16 14:59:21 -08:00
2022-01-08 19:22:00 +01:00
2021-12-22 00:02:36 -08:00
2022-01-12 14:54:12 +01:00
2021-12-18 21:01:10 -08:00
2021-12-23 17:53:46 -08:00
2022-01-12 14:55:19 +01:00
2021-11-11 09:20:35 +01:00
2021-11-11 09:20:35 +01:00
2022-01-16 11:18:04 +01:00
2021-12-28 11:00:51 +01:00
2021-09-26 12:45:55 +02:00
2022-01-08 20:10:58 +01:00
2021-12-16 22:21:35 +03:30
2021-09-16 17:17:13 +02:00
2022-01-07 15:44:42 +01:00
2022-01-08 19:22:00 +01:00
2021-10-04 11:10:09 +01:00
2021-10-04 11:10:09 +01:00
2021-11-11 01:27:46 +01:00
2021-12-16 22:21:35 +03:30
2022-01-08 19:22:00 +01:00
2021-12-22 00:02:36 -08:00
2021-12-22 00:02:36 -08:00
2022-01-13 18:46:22 +01:00
2021-10-04 11:10:09 +01:00
2021-10-04 11:10:09 +01:00
2021-09-20 18:32:09 +02:00
2021-12-21 21:24:36 +03:30
2022-01-08 19:22:00 +01:00
2022-01-16 11:18:04 +01:00
2022-01-11 00:08:58 +01:00
2022-01-13 18:46:22 +01:00
2022-01-07 18:38:32 +01:00
2021-12-28 11:00:51 +01:00
2021-12-05 12:53:29 +01:00
2022-01-08 19:22:00 +01:00
2021-10-04 11:10:09 +01:00
2021-12-21 18:16:48 -08:00
2021-09-23 18:51:21 +02:00
2021-10-26 08:47:06 +02:00
2022-01-08 19:22:00 +01:00
2021-12-21 18:16:48 -08:00
2021-12-21 14:04:23 +01:00
2021-10-04 11:10:09 +01:00
2021-10-04 11:10:09 +01:00
2022-01-02 08:10:08 +02:00
2021-12-21 18:16:48 -08:00
2022-01-08 19:22:00 +01:00
2022-01-13 18:46:22 +01:00
2021-10-20 09:20:18 +01:00
2021-12-16 22:21:35 +03:30
2022-01-04 19:08:07 +02:00
2021-12-24 05:26:21 -08:00
2022-01-08 19:22:00 +01:00
2021-12-21 18:16:48 -08:00
2021-12-12 08:34:19 +02:00
2022-01-07 15:44:42 +01:00
2021-10-17 17:09:58 +01:00
2022-01-12 14:54:12 +01:00
2021-10-04 11:10:09 +01:00
2022-01-16 14:59:21 -08:00
2022-01-08 19:22:00 +01:00
2022-01-16 14:59:21 -08:00
2022-01-12 14:54:12 +01:00
2022-01-10 23:47:30 +01:00
2022-01-10 23:47:30 +01:00
2021-12-21 18:16:48 -08:00
2021-10-15 14:47:41 -07:00
2021-12-29 03:17:41 -08:00
2021-12-29 03:17:41 -08:00
2022-01-08 19:22:00 +01:00
2022-01-11 11:47:48 +01:00
2022-01-11 11:47:48 +01:00
2021-12-21 21:24:36 +03:30
2021-12-21 21:24:36 +03:30
2021-10-04 11:10:09 +01:00
2021-10-04 11:10:09 +01:00
2021-12-21 21:24:36 +03:30