diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2025-01-06 14:27:53 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2025-01-06 14:29:41 +0100 |
commit | 37a8f1623592efbcb249d8ca0acd0c6167d37ed8 (patch) | |
tree | 24fbf880f5f613f35c5181724cf1e998e5c04f93 /tools/wdye/wdye.adoc | |
parent | 9fe576ae9e7b641925168612b98a704967a04dd0 (diff) | |
download | liberty-37a8f1623592efbcb249d8ca0acd0c6167d37ed8.tar.gz liberty-37a8f1623592efbcb249d8ca0acd0c6167d37ed8.tar.xz liberty-37a8f1623592efbcb249d8ca0acd0c6167d37ed8.zip |
wdye: enable waiting for processes
Diffstat (limited to 'tools/wdye/wdye.adoc')
-rw-r--r-- | tools/wdye/wdye.adoc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/wdye/wdye.adoc b/tools/wdye/wdye.adoc index 6282af2..d901400 100644 --- a/tools/wdye/wdye.adoc +++ b/tools/wdye/wdye.adoc @@ -94,6 +94,16 @@ PROCESS:eof {[notransfer=true, ] [value1, ...]} Returns a new end-of-file _pattern_, which matches the entire read buffer contents once the child process closes the terminal. +PROCESS:wait ([nowait]) +~~~~~~~~~~~~~~~~~~~~~~~ +Waits for the program to terminate, and returns three values: +a combined status as used by `$?` in shells, +an exit status, and a termination signal number. +One of the latter two values will be _nil_, as appropriate. + +When the *nowait* option is _true_, the function returns immediately. +If the process hasn't terminated yet, the function then returns no values. + PROCESS:default {[timeout, ] [notransfer=true, ] [value1, ...]} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Returns a new _pattern_ combining *wdye.timeout* with *eof*. |