Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: fg/bg on FreeBSD.
- X-seq: zsh-workers 11233
 
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxxxxxxxxx
 
- Subject: Re: fg/bg on FreeBSD.
 
- Date: Sat, 6 May 2000 17:08:28 +0000
 
- In-reply-to: <hvo3dnvoh59.fsf@xxxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
 
- References: <hvo3dnvoh59.fsf@xxxxxxxxxxxxxxx>
 
On May 7, 12:03am, Tanaka Akira wrote:
} Subject: fg/bg on FreeBSD.
}
} On FreeBSD 3.4 and 4.0, fg/bg may not activate suspended process.
} 
} Report the job info.
} echo's PID is 754 and it's already done.
} sleep's PID is 755 and it's suspended.
} 
} | dhcp21% ps j755
} | USER   PID  PPID  PGID   SESS JOBC STAT  TT       TIME COMMAND
} | akr    755   753   755 92fdc0    1 T     p1    0:00.00 sleep 10
Here's the same on linux:
zagzig[22] jobs -l
[1]  + 2052 done       echo | 
       2053 suspended  sleep 10
zagzig[23] ps j2053
 PPID   PID  PGID   SID TTY TPGID  STAT  UID   TIME COMMAND
 2013  2053  2052  2013  pc  2054  T     674   0:00 sleep 10 
Why is the PGID of sleep different on FreeBSD?  Did it change after the
sleep was started because the echo exited?
Please try the same test, but replace "echo" with "sleep 9" so that you
can stop both jobs before either one of them exits.  Then see what the
PGID of the second sleep is.
-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author