summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-02-04 18:39:10 +0000
committerLaurent Bercot <ska@appnovation.com>2022-02-04 18:39:10 +0000
commitf5d989ee28362740157ee57e5ae3ef921a4f2e2f (patch)
tree7567ffaa006587c6af9616fe75f561ae76f77b09 /doc
parent2fd253683d884d2529f112c88534396fcd2fbe45 (diff)
downloadexecline-f5d989ee28362740157ee57e5ae3ef921a4f2e2f.tar.xz
Allow getpid to get the ppid instead
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/getpid.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/getpid.html b/doc/getpid.html
index ef1410c..da4df66 100644
--- a/doc/getpid.html
+++ b/doc/getpid.html
@@ -26,7 +26,7 @@ then executes a program.
<h2> Interface </h2>
<pre>
- getpid [ -E | -e ] <em>var</em> <em>prog...</em>
+ getpid [ -E | -e ] [ -P | -p ] <em>var</em> <em>prog...</em>
</pre>
<p>
@@ -42,6 +42,8 @@ execs into <em>prog</em> with its arguments.
<em>prog...</em>, exec into <tt>importas -ui <em>var</em> <em>var</em>
<em>prog...</em></tt>. This substitutes <em>var</em> into the command
line instead of putting it into the environment. </li>
+ <li> <tt>-p</tt>&nbsp;: get the pid of the current process. This is the default. </li>
+ <li> <tt>-P</tt>&nbsp;: use <tt>getpid</tt>'s <em>parent</em> pid instead. </li>
</ul>
<h2> Notes </h2>