about summary refs log tree commit diff
path: root/Src/hist.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2018-09-06 10:39:45 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2018-09-16 17:42:31 +0100
commitf479764b34f997d27f591ddeb93d785f899534bb (patch)
treeb40f2c7e7d1ccb353ab541f3dad80d3f8a984e07 /Src/hist.c
parent301ca1229a6ca967f8bd7d3c379ff6b9983a3673 (diff)
downloadzsh-f479764b34f997d27f591ddeb93d785f899534bb.tar.gz
zsh-f479764b34f997d27f591ddeb93d785f899534bb.tar.xz
zsh-f479764b34f997d27f591ddeb93d785f899534bb.zip
43396: Job control debug.
Particularly for TTY ownership.
Diffstat (limited to 'Src/hist.c')
-rw-r--r--Src/hist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/hist.c b/Src/hist.c
index dbdc1e4e5..4e50b75e2 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -1116,7 +1116,7 @@ hbegin(int dohist)
 	hist_ring->ftim = time(NULL);
     if ((dohist == 2 || (interact && isset(SHINSTDIN))) && !strin) {
 	histactive = HA_ACTIVE;
-	attachtty(mypgrp);
+	ATTACHTTY(mypgrp, 4);
 	linkcurline();
 	defev = addhistnum(curhist, -1, HIST_FOREIGN);
     } else