Article View: gnu.bash.bug
Article #465Dead jobs not flushed?
From: Rich Salz
Date: Mon, 14 Aug 1989 18:32
Date: Mon, 14 Aug 1989 18:32
28 lines
1325 bytes
1325 bytes
It seems that BASH doesn't really free up an internal jobs slot until
I run the "jobs" command. I have "notify=1" in my .profile.
For example:
prune 1551: jobs
[1]+ Stopped Pnews
prune 1552: sleep 1&
[2] 24842
prune 1553: [2]- Done sleep 1
## Wait for first job to finish, then do another one; note the job
## number assigned is 3, not 2.
sleep 1&
[3] 24843
prune 1554: [3]- Done sleep 1
## Wait for the second sleep to finish, then see what's there; note
## the "Done" for an already done job.
jobs
[1]+ Stopped Pnews
[3]- Done sleep 1
prune 1555: sleep 1
prune 1556: jobs
[1]+ Stopped Pnews
prune 1557: fg
/r$
--
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.
Technical Details
Message-ID:
<1931@prune.bbn.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!agate!ucbvax!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!bbn!bbn.com!rsalzShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!shelby!agate!ucbvax!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!bbn!bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: gnu.bash.bug Subject: Dead jobs not flushed? Message-ID: <1931@prune.bbn.com> Date: 14 Aug 89 18:32:12 GMT Distribution: gnu Organization: BBN Systems and Technologies Corporation Lines: 28