From 51231d84baff8a936e1155d2ee2eee3b4d9117ce Mon Sep 17 00:00:00 2001
From: Přemysl Eric Janouch <p@janouch.name>
Date: Tue, 7 Jan 2025 03:07:39 +0100
Subject: wdye: clean up, add process.pid

---
 tools/wdye/wdye.adoc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'tools/wdye/wdye.adoc')

diff --git a/tools/wdye/wdye.adoc b/tools/wdye/wdye.adoc
index 98e251e..2609849 100644
--- a/tools/wdye/wdye.adoc
+++ b/tools/wdye/wdye.adoc
@@ -31,7 +31,7 @@ The *env* map may be used to override environment variables, notably _TERM_.
 Variables evaluating to _false_ will be removed from the environment.
 
 The program's whole process group receives SIGKILL when the _process_
-is garbage-collected.
+is garbage-collected, unless *wait* has collected the process group leader.
 
 wdye.expect ([pattern1, ...])
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -57,6 +57,10 @@ PROCESS.buffer
 ~~~~~~~~~~~~~~
 A string with the _process_' current read buffer contents.
 
+PROCESS.pid
+~~~~~~~~~~~
+An integer with the _process_' process ID, or -1 if *wait* has collected it.
+
 PROCESS.term
 ~~~~~~~~~~~~
 A table with the _process_' *terminfo*(5) capabilities,
-- 
cgit v1.2.3-70-g09d2

