hare

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

commit 6d7f7ab0d9f411fe43744901f63b2858088bd7a5
parent 83800f991b30f8a5dc3a54f74d4a2efca4762d8f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 22 Nov 2021 10:15:44 +0100

os::exec: add exec::wait to pipe docs

To clarify when you should do this step.

Signed-off-by: Drew DeVault <sir@cmpwn.com>

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

diff --git a/os/exec/exec+freebsd.ha b/os/exec/exec+freebsd.ha @@ -31,11 +31,12 @@ export fn fork() (int | void | error) = { // // let pipe = exec::pipe(); // exec::addfile(&cmd, pipe.1, os::stdout_file); -// exec::start(&cmd); +// exec::start(&cmd)!; // io::close(pipe.1); // // let data = io::drain(pipe.0)!; // io::close(pipe.0); +// exec::wait(&cmd)!; export fn pipe() (io::file, io::file) = { return unix::pipe()!; }; diff --git a/os/exec/exec+linux.ha b/os/exec/exec+linux.ha @@ -32,11 +32,12 @@ export fn fork() (int | void | error) = { // // let pipe = exec::pipe(); // exec::addfile(&cmd, pipe.1, os::stdout_file); -// exec::start(&cmd); +// exec::start(&cmd)!; // io::close(pipe.1); // // let data = io::drain(pipe.0)!; // io::close(pipe.0); +// exec::wait(&cmd)!; export fn pipe() (io::file, io::file) = { return unix::pipe()!; };