diff options
-rw-r--r-- | src/lib/libc/stdlib/system.3 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/system.3 b/src/lib/libc/stdlib/system.3 index 878bb0a9d2..bdd94c0115 100644 --- a/src/lib/libc/stdlib/system.3 +++ b/src/lib/libc/stdlib/system.3 | |||
@@ -29,9 +29,9 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: system.3,v 1.13 2013/07/18 10:14:50 schwarze Exp $ | 32 | .\" $OpenBSD: system.3,v 1.14 2016/02/05 18:09:19 espie Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd $Mdocdate: July 18 2013 $ | 34 | .Dd $Mdocdate: February 5 2016 $ |
35 | .Dt SYSTEM 3 | 35 | .Dt SYSTEM 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
@@ -107,3 +107,10 @@ string. | |||
107 | Shell meta-characters present will be honored by the | 107 | Shell meta-characters present will be honored by the |
108 | .Xr sh 1 | 108 | .Xr sh 1 |
109 | command interpreter. | 109 | command interpreter. |
110 | .Pp | ||
111 | It is often simpler to bypass the shell and run an external command using | ||
112 | .Xr fork 2 , | ||
113 | .Xr execlp 3 , | ||
114 | and | ||
115 | .Xr waitpid 2 | ||
116 | directly instead of having to sanitize a string for shell consumption. | ||