You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering that lambdas can also capture values, data can easily be shared between handlers.
57
57
58
-
To see which members the executor has, refer to [classref boost::process::extend::windows_executor windows_executor]
59
-
and [classref boost::process::extend::posix_executor posix_executor].
58
+
To see which members the executor has, refer to [classref boost::process::v1::extend::windows_executor windows_executor]
59
+
and [classref boost::process::v1::extend::posix_executor posix_executor].
60
60
61
61
[note Combined with __on_exit__ this can also handle the process exit.]
62
62
@@ -67,7 +67,7 @@ and [classref boost::process::extend::posix_executor posix_executor].
67
67
[section:handler Handler Types]
68
68
69
69
Since the previous example is in a functional style, it is not very reusable.
70
-
To solve that problem, the [classref boost::process::extend::handler handler] has an alias in the `boost::process::extend` namespace, to be inherited.
70
+
To solve that problem, the [classref boost::process::v1::extend::handler handler] has an alias in the `boost::process::v1::extend` namespace, to be inherited.
71
71
So let's implement the hello world example in a class.
[caution `on_exit_handler` does not default and is always required when [classref boost::process::extend::async_handler async_handler] is inherited. ]
134
+
[caution `on_exit_handler` does not default and is always required when [classref boost::process::v1::extend::async_handler async_handler] is inherited. ]
135
135
136
136
[caution `on_exit_handler` uses `boost::asio::signal_set` to listen for SIGCHLD on posix. The application must not also register a signal handler for SIGCHLD using functions such as `signal()` or `sigaction()` (but using `boost::asio::signal_set` is fine). ]
137
137
@@ -156,7 +156,7 @@ auto set_error = [](auto & exec)
156
156
__child__ c("foo", on_setup=set_error);
157
157
```
158
158
159
-
Since we do not specify the error-handling mode in this example, this will throw [classref boost::process::process_error process_error].
159
+
Since we do not specify the error-handling mode in this example, this will throw [classref boost::process::v1::process_error process_error].
0 commit comments