mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Added explanation of the use of the first program argument passed to the
exec*() family of functions.
This commit is contained in:
parent
93adb6918c
commit
7be3115860
1 changed files with 9 additions and 0 deletions
|
@ -758,6 +758,15 @@ Availability: Macintosh, \UNIX{}, Windows.
|
||||||
|
|
||||||
These functions may be used to create and manage processes.
|
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}{}
|
\begin{funcdesc}{abort}{}
|
||||||
Generate a \constant{SIGABRT} signal to the current process. On
|
Generate a \constant{SIGABRT} signal to the current process. On
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue