From f479764b34f997d27f591ddeb93d785f899534bb Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Thu, 6 Sep 2018 10:39:45 +0100
Subject: 43396: Job control debug.
Particularly for TTY ownership.
---
Src/Zle/zle_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'Src/Zle')
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 3487b5d9f..770c0c4f5 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -233,7 +233,7 @@ zsetterm(void)
shttyinfo.lmodes &= ~LFLUSHO;
#endif
- attachtty(mypgrp);
+ ATTACHTTY(mypgrp, 18);
ti = shttyinfo;
#ifdef HAS_TIO
if (unset(FLOWCONTROL))
@@ -917,7 +917,7 @@ getbyte(long do_keytmout, int *timeout, int full)
} else if (errno == EIO && !die) {
ret = opts[MONITOR];
opts[MONITOR] = 1;
- attachtty(mypgrp);
+ ATTACHTTY(mypgrp, 19);
zrefresh(); /* kludge! */
opts[MONITOR] = ret;
die = 1;
--
cgit 1.4.1