commit cb4c4f42de3e9c1ff15086534c12520067c0e8d5
parent 3bb97c6e8785d9066d2e6b44c09fb0d5a32ff08b
Author: Mallory Adams <malloryadams@fastmail.com>
Date: Sat, 12 Oct 2024 21:32:52 -0400
Update documentation for os::exec::pipe
The documentation was correct on Linux, but the BSDs had two arguments
in the wrong order.
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/os/exec/+freebsd/exec.ha b/os/exec/+freebsd/exec.ha
@@ -35,7 +35,7 @@ export fn fork() (process | void | error) = {
// To capture the standard output of a process:
//
// let pipe = exec::pipe();
-// exec::addfile(&cmd, pipe.1, os::stdout_file);
+// exec::addfile(&cmd, os::stdout_file, pipe.1);
// let proc = exec::start(&cmd)!;
// io::close(pipe.1)!;
//
diff --git a/os/exec/+netbsd/exec.ha b/os/exec/+netbsd/exec.ha
@@ -35,7 +35,7 @@ export fn fork() (process | void | error) = {
// To capture the standard output of a process:
//
// let pipe = exec::pipe();
-// exec::addfile(&cmd, pipe.1, os::stdout_file);
+// exec::addfile(&cmd, os::stdout_file, pipe.1);
// let proc = exec::start(&cmd)!;
// io::close(pipe.1)!;
//
diff --git a/os/exec/+openbsd/exec.ha b/os/exec/+openbsd/exec.ha
@@ -36,7 +36,7 @@ export fn fork() (process | void | error) = {
// To capture the standard output of a process:
//
// let pipe = exec::pipe();
-// exec::addfile(&cmd, pipe.1, os::stdout_file);
+// exec::addfile(&cmd, os::stdout_file, pipe.1);
// let proc = exec::start(&cmd)!;
// io::close(pipe.1)!;
//