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

Re: Lost Job Control



> xclock &
> xclock &
> %1
> <Control-C>
> %
> <Control-C>
> %
> (ZSH Output: zsh: can't set tty pgrp: invalid argument)

The fix is below.

Zoltan


*** Src/builtin.c	1996/12/14 01:21:07	3.1.0.11
--- Src/builtin.c	1996/12/15 23:43:26
***************
*** 531,537 ****
      if (curjob != -1 && !(jobtab[curjob].stat & STAT_INUSE)) {
  	curjob = prevjob;
  	setprevjob();
! 	if (curjob != -1 && !(jobtab[curjob].stat & STAT_INUSE)) {
  	    curjob = prevjob;
  	    setprevjob();
  	}
--- 531,538 ----
      if (curjob != -1 && !(jobtab[curjob].stat & STAT_INUSE)) {
  	curjob = prevjob;
  	setprevjob();
! 	if (curjob != -1 && !((jobtab[curjob].stat & STAT_INUSE) &&
! 			      curjob != thisjob)) {
  	    curjob = prevjob;
  	    setprevjob();
  	}



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