diff options
author | Fred Drake <fdrake@acm.org> | 2000-09-23 05:22:07 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-09-23 05:22:07 (GMT) |
commit | 7be31158606b95a02724e0888daf8bcc71d24b05 (patch) | |
tree | 26d41da31c8ad62b38eb8bdf3b00d3d80771f116 /Doc | |
parent | 93adb6918ce86efbb19620d88a7d2acb18427b37 (diff) | |
download | cpython-7be31158606b95a02724e0888daf8bcc71d24b05.zip cpython-7be31158606b95a02724e0888daf8bcc71d24b05.tar.gz cpython-7be31158606b95a02724e0888daf8bcc71d24b05.tar.bz2 |
Added explanation of the use of the first program argument passed to the
exec*() family of functions.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libos.tex | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex index d0571af..9673563 100644 --- a/Doc/lib/libos.tex +++ b/Doc/lib/libos.tex @@ -758,6 +758,15 @@ Availability: Macintosh, \UNIX{}, Windows. These functions may be used to create and manage processes. +The various \function{exec*()} functions take a list of arguments for +the new program loaded into the process. In each case, the first of +these arguments is passed to the new program as its own name rather +than as an argument a user may have typed on a command line. For the +C programmer, this is the \code{argv[0]} passed to a program's +\cfunction{main()}. For example, \samp{os.execv('/bin/echo', ['foo', +'bar'])} will only print \samp{bar} on standard output; \samp{foo} +will seem to be ignored. + \begin{funcdesc}{abort}{} Generate a \constant{SIGABRT} signal to the current process. On |