Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
added more precise description for some details
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Oct 28, 2016
1 parent 58023d7 commit f70a609
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/design.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ child c("ls", on_setup([](){cout << "On Setup" << endl;});
```


[note On posix all those callbacks will be handles by this process, not the created one.]
[note On posix all those callbacks will be handled by this process, not the created one.
This is different for the posix extensions, which can be executed on the forked process.]
[endsect]

[endsect]
8 changes: 7 additions & 1 deletion doc/tutorial.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@ bp::system c("g++", "main.cpp", ec);
[section:io Synchronous I/O]

In the examples given above, we have only started a program, but did not consider the output.
The default depends on the system, but usually this will just write it to the output of the launching process.
The default depends on the system, but usually this will just write it to the same output as the launching process.
If this shall be guaranteed, the streams can be explicitly forwarded like this.

```
bp::system("g++", bp::std_out > stdout, bp::std_err > stderr, bp::stdin < stdin);
```

Now for the first example, we might want to just ignore the output, which can be done by redirecting it to the null-device.
This can be achieved this way:

Expand Down

0 comments on commit f70a609

Please sign in to comment.