@@ -752,12 +752,17 @@ Eio.Io Net Connection_failure Refused Unix_error (Connection refused, "connect",
752
752
```
753
753
754
754
If we ran this using another backend, the ` Unix_error ` part might change.
755
- To avoid this problem, you can use ` Eio.Exn.Backend.show ` to hide the backend-specific part of errors:
755
+ To avoid this problem, you can use ` Eio.Exn.Backend.show `
756
756
757
757
``` ocaml
758
758
# Eio.Exn.Backend.show := false;;
759
759
- : unit = ()
760
+ ```
761
+
762
+ to hide the backend-specific part of errors:
760
763
764
+ <!-- $MDX skip -->
765
+ ``` ocaml
761
766
# Eio_main.run @@ fun env ->
762
767
let net = Eio.Stdenv.net env in
763
768
Switch.run @@ fun sw ->
@@ -892,6 +897,7 @@ perhaps with `open_dir` to constrain all access to be within that directory.
892
897
893
898
Spawning a child process can be done using the [ Eio.Process] [ ] module:
894
899
900
+ <!-- $MDX non-deterministic=command -->
895
901
``` ocaml
896
902
# Eio_main.run @@ fun env ->
897
903
let proc_mgr = Eio.Stdenv.process_mgr env in
@@ -903,6 +909,7 @@ hello
903
909
There are various optional arguments for setting the process's current directory or connecting up the standard streams.
904
910
For example, we can use ` tr ` to convert some text to upper-case:
905
911
912
+ <!-- $MDX non-deterministic=command -->
906
913
``` ocaml
907
914
# Eio_main.run @@ fun env ->
908
915
let proc_mgr = Eio.Stdenv.process_mgr env in
@@ -915,6 +922,7 @@ ONE TWO THREE
915
922
If you want to capture the output of a process, you can provide a suitable ` Eio.Flow.sink ` as the ` stdout ` argument,
916
923
or use the ` parse_out ` convenience wrapper:
917
924
925
+ <!-- $MDX non-deterministic=command -->
918
926
``` ocaml
919
927
# Eio_main.run @@ fun env ->
920
928
let proc_mgr = Eio.Stdenv.process_mgr env in
@@ -924,6 +932,7 @@ or use the `parse_out` convenience wrapper:
924
932
925
933
All process functions either return the exit status or check that it was zero (success):
926
934
935
+ <!-- $MDX non-deterministic=command -->
927
936
``` ocaml
928
937
# Eio_main.run @@ fun env ->
929
938
let proc_mgr = Eio.Stdenv.process_mgr env in
0 commit comments