From: Peter Stephenson <pws@hydra.ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: zsh hangs on IRIX 5.2 / me to: (SunOS4.1.3 + Solaris 2.4)
Date: Wed, 27 Mar 1996 09:24:24 +0100 [thread overview]
Message-ID: <9603270824.AA02618@hydra.ifh.de> (raw)
In-Reply-To: "schaefer@z-code.ncd.com"'s message of "Tue, 26 Mar 1996 11:52:39 MET." <960326115239.ZM24606@zyrcon.z-code.com>
schaefer@z-code.ncd.com wrote:
> I think this is what is wanted:
>
> if (pgrp != mypgrp && kill(pgrp, 0) == -1)
> attachtty(mypgrp);
> else {
That's got to work, since it'll only try the attachtty(mypgrp) once
and then fail. Here's that as a patch for everyone to try at home.
*** Src/utils.c.pgrp Wed Mar 27 09:17:42 1996
--- Src/utils.c Wed Mar 27 09:17:09 1996
***************
*** 2597,2603 ****
# endif
#endif
{
! if (kill(pgrp, 0) == -1)
attachtty(mypgrp);
else {
zerr("can't set tty pgrp: %e", NULL, errno);
--- 2597,2603 ----
# endif
#endif
{
! if (pgrp != mypgrp && kill(pgrp, 0) == -1)
attachtty(mypgrp);
else {
zerr("can't set tty pgrp: %e", NULL, errno);
--
Peter Stephenson <pws@ifh.de> Tel: +49 33762 77366
WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.
next prev parent reply other threads:[~1996-03-27 8:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-22 21:13 zsh hangs on IRIX 5.2 Achim Braemer
1996-03-22 21:50 ` zsh hangs on IRIX 5.2 / me to: (SunOS4.1.3 + Solaris 2.4) leibniz!stucki
1996-03-25 10:55 ` Peter Stephenson
1996-03-26 11:32 ` Achim Braemer
1996-03-26 12:43 ` Bas V. de Bakker
1996-03-26 18:19 ` Achim Braemer
1996-03-26 18:45 ` Zefram
1996-03-26 19:52 ` Barton E. Schaefer
1996-03-27 8:24 ` Peter Stephenson [this message]
1996-03-27 16:45 ` Achim Braemer
[not found] ` <m0u0Ej9-00080xC@leibniz.math.fu-berlin.de>
1996-03-22 22:12 ` Achim Braemer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9603270824.AA02618@hydra.ifh.de \
--to=pws@hydra.ifh.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).