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)
- X-seq: zsh-workers 861
- From: schaefer@xxxxxxxxxxxxxx (Barton E. Schaefer)
- To: Zefram <A.Main@xxxxxxxxxxxxxxxxx>, braemer@xxxxxxxxxxxxxxxxxxxxxxxxxxx (Achim Braemer), zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: zsh hangs on IRIX 5.2 / me to: (SunOS4.1.3 + Solaris 2.4)
- Date: Tue, 26 Mar 1996 11:52:39 -0800
- Cc: bas@xxxxxxxxxxxx
- In-reply-to: Zefram <A.Main@xxxxxxxxxxxxxxxxx> "Re: zsh hangs on IRIX 5.2 / me to: (SunOS4.1.3 + Solaris 2.4)" (Mar 26, 6:45pm)
- References: <14689.199603261845@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: schaefer@xxxxxxxxxxxxxx
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