From ced33358fcbeb9e469927a63c33d73acc1db5c32 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 31 Aug 1999 13:55:45 +0000 Subject: zsh-workers/7573 --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index b982b4767..a6fa5f0b0 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2438,7 +2438,7 @@ attachtty(pid_t pgrp) # endif #endif { - if (pgrp != mypgrp && kill(pgrp, 0) == -1) + if (pgrp != mypgrp && kill(-pgrp, 0) == -1) attachtty(mypgrp); else { if (errno != ENOTTY) -- cgit 1.4.1