hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit d72e9af96adc1f9d8ba66e59c08f58b80591830d
parent c3bc351abceefdde968a89471d91909cf1251353
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun,  5 Jun 2022 00:27:14 -0400

os: ignore io::close error in fini_stdfd

If this fails for some reason, the program shouldn't try to abort; it
should continue cleaning up.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mos/+freebsd/stdfd.ha | 2+-
Mos/+linux/stdfd.ha | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/os/+freebsd/stdfd.ha b/os/+freebsd/stdfd.ha @@ -44,5 +44,5 @@ export def BUFSIZ: size = 4096; // 4 KiB @fini fn fini_stdfd() void = { // Flush any pending writes - io::close(stdout)!; + io::close(stdout): void; }; diff --git a/os/+linux/stdfd.ha b/os/+linux/stdfd.ha @@ -44,5 +44,5 @@ export def BUFSIZ: size = 4096; // 4 KiB @fini fn fini_stdfd() void = { // Flush any pending writes - io::close(stdout)!; + io::close(stdout): void; };