Discussion:
[ast-developers] $ jobs -l # after "wait"-loop still reports child processes...
Roland Mainz
2013-06-24 08:56:12 UTC
Permalink
Hi!

----

More or less as follow-up to
http://lists.research.att.com/pipermail/ast-developers/2013q2/002653.html
("$ while ! wait ; do true ; done # doesn't wait for all child
processes...") ...
... attached (as "shrttest3_20130624.sh.gz") is a testcase which shows
that ast-ksh.2013-06-13 may still report running jobs after a $ while
! wait ; do true ; done #-loop.

The output on SuSE 12.3/AMD64/64bit looks like this:
-- snip --
$ ~/bin/ksh shrttest3.sh
jobs -l reported running processes:
[30] + 6963 Running <command unknown>
[28] - 6961 Running <command unknown>
[26] 6959 Running <command unknown>
[24] 6957 Running <command unknown>
[23] 6956 Running <command unknown>
[22] 6955 Running <command unknown>
[21] 6954 Running <command unknown>
[20] 6953 Running <command unknown>
[19] 6952 Running <command unknown>
[18] 6951 Running <command unknown>
[17] 6950 Running <command unknown>
[16] 6949 Running <command unknown>
[15] 6948 Running <command unknown>
[13] 6946 Running <command unknown>
[4] 6937 Running <command unknown>
[2] 6935 Running <command unknown>
#DONE (failed).
-- snip --

A side-issue is that the script registers a CHLD trap which should
print 'DONEX\n' for each returning child... but it doesn't seem to be
called at all in this script...

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shrttest3_20130624.sh.gz
Type: application/x-gzip
Size: 1726 bytes
Desc: not available
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20130624/dbccd175/attachment.gz>
Loading...