harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit 2a32144e15ac6e4cc1bca60b007b499a681fcbcf
parent 8a8bce43afb87731d98f65875329e7ab5cac68bb
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 17 Jun 2022 17:29:46 -0400

rt: assert that pipe2 succeeded

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

Diffstat:
Mrt/compile.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rt/compile.ha b/rt/compile.ha @@ -2,7 +2,7 @@ export fn compile(src: const str) int = { let status = 0; let pipefd = [-1, -1]; - pipe2(&pipefd, 0); + assert(pipe2(&pipefd, 0) == 0); const child = fork(); if (child == 0) {