From f5d989ee28362740157ee57e5ae3ef921a4f2e2f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 4 Feb 2022 18:39:10 +0000 Subject: Allow getpid to get the ppid instead Signed-off-by: Laurent Bercot --- doc/getpid.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') 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.

Interface

-     getpid [ -E | -e ] var prog...
+     getpid [ -E | -e ] [ -P | -p ] var prog...
 

@@ -42,6 +42,8 @@ execs into prog with its arguments. prog..., exec into importas -ui var var prog.... This substitutes var into the command line instead of putting it into the environment. +

  • -p : get the pid of the current process. This is the default.
  • +
  • -P : use getpid's parent pid instead.
  • Notes

    -- cgit v1.2.3