diff --git a/doc/env.adoc b/doc/env.adoc index 3dca9054..8aa4c8b0 100644 --- a/doc/env.adoc +++ b/doc/env.adoc @@ -25,7 +25,7 @@ include::../example/env.cpp[tag=current_env] The subprocess environment assignment follows the same constraints: .example/env.cpp:34-42 -[source,cpp,ident=0] +[source,cpp,indent=0] ---- include::../example/env.cpp[tag=subprocess_env] ---- @@ -36,7 +36,7 @@ The current environment can be obtained by calling `environment::current` which a forward range of `environment::key_value_pair_view`. .example/env.cpp:48-54 -[source,cpp,ident=0] +[source,cpp,indent=0] ---- include::../example/env.cpp[tag=vector_env] ---- @@ -44,7 +44,7 @@ include::../example/env.cpp[tag=vector_env] Alternatively you can use a map container for the environment. .example/env.cpp:61-68 -[source,cpp,ident=0] +[source,cpp,indent=0] ---- include::../example/env.cpp[tag=map_env] ---- diff --git a/doc/launcher.adoc b/doc/launcher.adoc index f7ad56cd..56c81d10 100644 --- a/doc/launcher.adoc +++ b/doc/launcher.adoc @@ -118,7 +118,7 @@ struct custom_initializer }; ---- -NTOE: All the additional launchers for windows inherit `default_launcher`. +NOTE: All the additional launchers for windows inherit `default_launcher`. The call sequence is as follows: diff --git a/doc/reference/bind_launcher.adoc b/doc/reference/bind_launcher.adoc index 44c1395b..632b8e30 100644 --- a/doc/reference/bind_launcher.adoc +++ b/doc/reference/bind_launcher.adoc @@ -1,6 +1,6 @@ == `bind_launcher.hpp` -The `bind_launcher` utlitities allow on the fly construction of a launcher with bound initializers. +The `bind_launcher` utilities allow on the fly construction of a launcher with bound initializers. [source,cpp] ---- diff --git a/doc/reference/default_launcher.adoc b/doc/reference/default_launcher.adoc index fcd194c2..f3d02b18 100644 --- a/doc/reference/default_launcher.adoc +++ b/doc/reference/default_launcher.adoc @@ -8,7 +8,7 @@ The `default_launcher` is the standard way of creating a process. asio::io_context ctx; process proc(ctx.get_executor(), "test", {}); // equivalent to -process prod = default_launcher()(ctx.get_executor(), "test", {}); +process proc = default_launcher()(ctx.get_executor(), "test", {}); ---- It has four overloads: diff --git a/doc/reference/popen.adoc b/doc/reference/popen.adoc index 449a3f70..4075966a 100644 --- a/doc/reference/popen.adoc +++ b/doc/reference/popen.adoc @@ -1,7 +1,7 @@ == `popen.hpp` [#popen] -`popen` is a class that launches a process and connect stdin & stderr to pipes. +`popen` is a class that launches a process and connect stdin & stdout to pipes. [source,cpp] ---- diff --git a/doc/reference/posix/bind_fd.adoc b/doc/reference/posix/bind_fd.adoc index b28f8fe2..0d2446a3 100644 --- a/doc/reference/posix/bind_fd.adoc +++ b/doc/reference/posix/bind_fd.adoc @@ -41,7 +41,7 @@ struct bind_fd process p{"test", {}, posix::bind_fd(42, 24)}; */ - bind_fd(int target, int fd): + bind_fd(int target, int fd); // Inherit a null device as a set descriptor. /* This will a null device as 42 to the child process: diff --git a/doc/reference/process.adoc b/doc/reference/process.adoc index 7c9ad335..91cc2225 100644 --- a/doc/reference/process.adoc +++ b/doc/reference/process.adoc @@ -78,7 +78,7 @@ struct basic_process template explicit basic_process( ExecutionContext & context, - const filesystem::path&>::type exe, + const filesystem::path& exe, Args&& args, Inits&&... inits); // Attach to an existing process @@ -142,7 +142,7 @@ struct basic_process native_handle_type native_handle() {return process_handle_.native_handle(); } // Return the evaluated exit_code. - int exit_code() cons; + int exit_code() const; // Get the id of the process; pid_type id() const;