hare

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

commit ee9d77678139ed153f9887ca7ccfb1e6cbfc7456
parent 31c023c41616b88d524b05e5d26608157a4f2e48
Author: Ember Sawady <ecs@d2evs.net>
Date:   Sat,  4 Feb 2023 04:24:16 +0000

os::exec: fix errno handling in platform_start

Signed-off-by: Ember Sawady <ecs@d2evs.net>

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

diff --git a/os/exec/exec+freebsd.ha b/os/exec/exec+freebsd.ha @@ -182,7 +182,7 @@ fn platform_start(cmd: *command) (process | errors::error) = { }; let err = err as errors::opaque; let err = &err.data: *rt::errno; - rt::write(pipe[1], &err, size(int))!; + rt::write(pipe[1], err, size(int))!; rt::exit(1); }; }; diff --git a/os/exec/exec+linux.ha b/os/exec/exec+linux.ha @@ -195,7 +195,7 @@ fn platform_start(cmd: *command) (process | errors::error) = { }; let err = err as errors::opaque; let err = &err.data: *rt::errno; - rt::write(pipe[1], &err, size(int))!; + rt::write(pipe[1], err, size(int))!; rt::exit(1); }; };