Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: W02: really close all the fds for sleep
---
I'm not sure if this is the best way to handle this, but this way the sleeps are
really not connected to the pipe anymore, and the pipeline exits normally. (The sleep
might still continue running, so we may still want to reduce the 100.)
Test/W02jobs.ztst | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Test/W02jobs.ztst b/Test/W02jobs.ztst
index 1faac0c441..bdb6ab979a 100644
--- a/Test/W02jobs.ztst
+++ b/Test/W02jobs.ztst
@@ -3,11 +3,12 @@
%prep
if zmodload zsh/zpty 2> /dev/null; then
+ export ZTST_fd
zpty_start() {
export PS1= PS2=
zpty -d
zpty zsh "${(q)ZTST_testdir}/../Src/zsh -fiV +Z"
- zpty -w zsh 'alias sleep="sleep </dev/null >/dev/null 2>&1"'
+ zpty -w zsh 'alias sleep="sleep </dev/null >/dev/null 2>&1"; exec {ZTST_fd}>&-'
}
zpty_input() {
zpty -w zsh "${(F)@}" $'\n'
--
2.38.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author