zsh-workers
 help / color / mirror / code / Atom feed
From: Will Day <willday@rom.oit.gatech.edu>
To: zsh workers mailing list <zsh-workers@sunsite.auc.dk>
Subject: prob: fg not sending CONT to 'make' children
Date: Sun, 29 Aug 1999 03:35:16 -0400	[thread overview]
Message-ID: <19990829033516.A27751@rom.oit.gatech.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 2101 bytes --]

I ran into the following problem under 3.1.6 while doing a recompile; after
stopping (ctrl-Z) the make process, doing an 'fg' would not continue the
make process.  Looking at the process tree, the make itself is continued,
but its child process is still stopped.

Another datapoint is that I generally use a shell function to run make; if
I _don't_ use the function, it works properly.

Here's a distilled example:
	% cat Makefile
	  default:
	  	read i
	% zsh -f
	% echo $$
	1106
	% gm() {gmake $*}
	% gm
	read i
	^Zzsh: suspended  gm
	% fg
	[1]  + continued  gm

At this point, hitting return after return doesn't finish the make.

On another terminal:
	% /usr/proc/bin/ptree 1106
	220   /usr/local/sbin/sshd
	  21855 /usr/local/sbin/sshd
	    21858 -zsh
	      1106  zsh -f
	        1110  gmake
	          1111  /bin/sh -c read i
	        1113  zsh -f
	% truss -p 1106
	sigsuspend(0xEFFFEB48)          (sleeping...)
	% truss -p 1110
	wait()                          (sleeping...)
	% truss -p 1111
	    Stopped by signal #24, SIGTSTP, in read()
	% truss -p 1113
	    Stopped by signal #23, SIGSTOP

I found it odd that there's a second zsh process there (1113), and didn't
know what to make of it.  

The problem doesn't occur under 3.1.5 (nor does the extra zsh process).
Looking through the code, it was clear things had changed quite a bit, but
I couldn't understand the code well enough to hazard a guess as to what's
causing the problem.

For reference, this is under Solaris 2.6, with zsh-3.1.6 (both with and
without dynamic-loading) as well as with zsh-3.1.6-pws-1.  Gmake is 3.71,
but it occurs with solaris /usr/ccs/bin/make as well.

-- 
Will Day     <PGP mail preferred>     OIT / O&E / Technical Support
willday@rom.oit.gatech.edu            Georgia Tech, Atlanta 30332-0715
  -> Opinions expressed are mine alone and do not reflect OIT policy <-
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    Benjamin Franklin, Pennsylvania Assembly, Nov. 11, 1755

[-- Attachment #2: Type: application/pgp-signature, Size: 344 bytes --]

             reply	other threads:[~1999-08-29  7:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-29  7:35 Will Day [this message]
1999-08-29 18:42 ` Bart Schaefer
1999-08-30  8:21 Sven Wischnowsky
1999-08-30 14:43 ` Bart Schaefer
1999-08-31 11:25 Sven Wischnowsky
1999-08-31 16:40 ` Bart Schaefer
1999-09-01  8:08 Sven Wischnowsky
1999-09-01 16:46 ` Bart Schaefer
1999-09-01 12:11 Sven Wischnowsky

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=19990829033516.A27751@rom.oit.gatech.edu \
    --to=willday@rom.oit.gatech.edu \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).