http://bugs.grommit.com/show_bug.cgi?id=631
Summary: Subshell doesn't exit, holds pipe open preventing
callers from exiting.
Product: ksh93-integration
Version: unspecified
Platform: i386 (64bit/AMD64)
OS/Version: Solaris 11/Nevada
Status: NEW
Severity: blocker
Priority: P2
Component: App/ksh93
AssignedTo: ksh93-integration-discuss at opensolaris.org
ReportedBy: robert.doolittle at sun.com
The following scenario hangs with snv_122, 100% reproducible:
Create a script hangit:
-----
#!/bin/ksh
( sleep 100000 </dev/null >/dev/null 2>&1 & )
exit 0
-----
Run the following command:
hangit | tee -a /tmp/log
The hang can be eliminated either by removing the "exit 0" line (?!?), or by
redirecting the subshell output to /dev/null.
This is pretty nasty. I've whittled it down to this simple case but am seeing
it in a much more subtle and complex environment where there are several
intermediate calling scripts which have exited and eventually the parent pipes
the output and hangs on the open pipe. It was hard to track down.
Probably it should be a P1 but it's my first filed bug so I'm being merciful.
Please re-prioritize if appropriate.
--
Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.