Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: zsh hangs (3.0.6-pre-2, 3.1.5-pws-16)



Hello, Bart,

I applied your patch for fixing zsh hang problem patch issued in 6213.
And I tested.  This problem is too difficult to understand for me, but
patched zsh works well.  The patched zsh doesn't hang any more!!
(I tested 3.1.5-pws-17 in HP-UX 9.07).

So, I hope that this patch will be incorporated! :-)

Bart> Index: Src/exec.c
Bart> ===================================================================
Bart> RCS file: /extra/cvsroot/zsh/zsh-3.0/Src/exec.c,v
Bart> retrieving revision 1.1.1.5.2.3
Bart> diff -u -r1.1.1.5.2.3 exec.c
Bart> --- exec.c	1999/04/28 05:21:34	1.1.1.5.2.3
Bart> +++ exec.c	1999/05/04 16:34:15
Bart> @@ -2071,7 +2071,7 @@
Bart>  	zclose(pipes[1]);
Bart>  	retval = readoutput(pipes[0], qt);
Bart>  	fdtable[pipes[0]] = 0;
Bart> -	child_suspend(0);		/* unblocks */
Bart> +	waitforpid(pid);		/* unblocks */
Bart>  	lastval = cmdoutval;
Bart>  	return retval;
Bart>      }

-- 
Tatsuo Furukawa (frkwtto@xxxxxxxxxxxxxxx)



Messages sorted by: Reverse Date, Date, Thread, Author