hare

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

commit 70a17197c071ef1916d232b099f403c550f6c963
parent c9aa387c59912f8205f428e3fb5175fa915ec34b
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 25 Apr 2021 10:43:46 -0400

rt::abort: hang if kill fails

Diffstat:
Mrt/+linux/abort.ha | 1+
Mrt/abort.ha | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/rt/+linux/abort.ha b/rt/+linux/abort.ha @@ -5,4 +5,5 @@ fn platform_abort(msg: str) void = { write(2, *(&msg: **void): *const char, len(msg)): void; write(2, *(&linefeed: **void): *const char, 1): void; kill(getpid(), SIGABRT): void; + for (true) void; }; diff --git a/rt/abort.ha b/rt/abort.ha @@ -20,4 +20,5 @@ export @noreturn fn abort_fixed(loc: str, i: int) void = { write(2, *(&reasons[i]: **void): *const char, len(reasons[i])): void; write(2, *(&linefeed: **void): *const char, 1): void; kill(getpid(), SIGABRT): void; + for (true) void; };