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

Re: zsh hangs on IRIX 5.2 / me to: (SunOS4.1.3 + Solaris 2.4)



On Mar 26,  6:45pm, Zefram wrote:
} Subject: Re: zsh hangs on IRIX 5.2 / me to: (SunOS4.1.3 + Solaris 2.4)
}
} >/**/
} >void
} >attachtty(pid_t pgrp)
} >{
} ...
} >        {
} >            if (kill(pgrp, 0) == -1)
} >                attachtty(mypgrp);                     <===============
} >            else {
} ...
} 
} The obvious solution is to add a flag so that this only retries once.
} But in which circumstances is this retry needed at all?

I think this is what is wanted:

		if (pgrp != mypgrp && kill(pgrp, 0) == -1)
		    attachtty(mypgrp);
		else {

-- 
Bart Schaefer                     Vice President, Technology, Z-Code Software
schaefer@xxxxxxxxxx                  Division of NCD Software Corporation
http://www.well.com/www/barts




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