From 3023441a8c9ac5fd673b62c7f8c8df7a5d51b1ac Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Sun, 30 Apr 2017 09:24:43 -0400 Subject: [PATCH] Reword; use better idiom for not-sinking --- doc/Language/ipc.pod6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Language/ipc.pod6 b/doc/Language/ipc.pod6 index 0b2346772..f9a9e8e80 100644 --- a/doc/Language/ipc.pod6 +++ b/doc/Language/ipc.pod6 @@ -39,10 +39,10 @@ all output pipes, the program will usually not terminate. $git.out.close(); If the program fails (exits with a non-zero exit code), it will throw -an exception when the return object is sunk. You can capture the -L object to avoid this if needed. +an exception when the returned L object is sunk. You can save it into +a variable, even anonymous one, to prevent the sinking: - my $don't-die = run '/bin/false'; + $ = run '/bin/false'; # does not sink the Proc and so does not throw You can tell the C object to capture output as a file handle by passing the C<:out> and C<:err> flags. You may also pass input via the C<:in> flag.