Léo Lam
391644dbb5
IOS/FS: Add a scoped FD class to make it harder to leak FDs
...
This changes FileSystemProxy::Open to return a file descriptor wrapper
that will ensure the FD is closed when it goes out of scope.
By using such a wrapper we make it more difficult to forget to close
file descriptors.
This fixes a leak in ReadBootContent. I should have added such a class
from the beginning... In practice, I don't think this would have caused
any obvious issue because ReadBootContent is only called after an IOS
relaunch -- which clears all FDs -- and most titles do not get close
to the FD limit.
2021-04-01 21:34:58 +02:00
..
2021-03-04 18:41:13 +01:00
2021-02-21 18:15:26 +04:00
2021-03-07 14:22:54 +01:00
2021-03-02 19:29:47 +04:00
2021-02-10 02:03:16 +01:00
2021-03-26 17:27:21 -07:00
2020-12-24 23:38:59 -06:00
2021-03-27 01:38:33 +01:00
2021-04-01 21:34:58 +02:00
2021-03-27 01:11:34 +01:00
2020-12-29 16:06:17 -05:00
2020-12-11 10:08:20 +01:00
2020-11-23 12:20:02 -05:00
2019-05-06 18:48:04 +00:00
2021-03-18 22:59:59 +01:00
2019-11-09 15:31:51 +01:00
2020-12-11 10:02:14 +01:00
2021-03-07 18:27:36 +01:00
2018-09-15 17:28:23 +02:00
2021-03-04 18:41:13 +01:00
2021-03-04 18:41:13 +01:00
2021-03-27 01:38:33 +01:00
2020-11-09 10:38:49 +01:00
2020-12-29 16:06:17 -05:00
2019-05-06 18:48:04 +00:00
2021-01-27 14:29:47 -08:00
2021-01-27 14:29:47 -08:00
2018-05-29 07:54:39 -04:00
2018-05-29 17:45:07 -04:00
2020-12-24 13:49:25 -06:00
2020-12-24 13:49:25 -06:00
2021-01-20 12:25:21 -06:00
2020-12-24 13:49:25 -06:00
2020-12-29 16:06:17 -05:00
2020-12-11 10:08:20 +01:00
2020-12-11 15:38:11 +01:00
2019-05-06 18:48:04 +00:00
2020-04-03 12:53:38 +02:00
2020-12-24 13:48:38 -06:00
2020-12-24 13:48:38 -06:00
2019-06-26 17:55:51 +02:00
2019-06-26 17:55:51 +02:00
2020-08-27 21:54:04 +01:00
2021-02-24 19:02:30 +01:00
2019-05-08 11:20:59 +01:00
2021-01-27 05:15:54 -08:00
2019-05-06 18:48:04 +00:00
2021-02-12 21:40:31 +01:00
2020-11-28 23:35:55 +01:00
2021-03-07 14:22:53 +01:00
2021-01-20 12:24:05 -05:00
2021-03-07 14:22:53 +01:00
2021-03-07 14:22:53 +01:00
2021-01-20 12:24:05 -05:00
2021-03-07 10:10:02 -08:00
2021-02-12 13:42:18 +04:00
2020-12-29 14:24:46 -08:00
2020-12-29 14:24:46 -08:00
2021-03-04 18:41:13 +01:00
2020-10-21 22:49:59 +02:00
2020-08-02 22:46:53 +02:00
2021-01-27 14:29:48 -08:00
2020-12-29 19:09:57 -05:00
2020-12-19 23:22:06 -05:00
2020-12-19 23:22:06 -05:00
2019-11-11 07:32:57 -05:00
2019-02-25 19:55:46 +01:00
2021-03-07 14:22:53 +01:00
2021-03-07 14:22:53 +01:00
2021-02-12 21:40:31 +01:00
2021-02-12 21:40:31 +01:00