Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-19
04:37 • Ticket [218311ffff] Cannot exit if sub-process has been backgrounded status ... artifact: 7e427cacdf user: dgp
2000-10-26
08:19 • Closed ticket [218311ffff]. artifact: b82f0a0455 user: welch
00:56 • New ticket [218311ffff]. artifact: e13d25854f user: nobody

Cannot exit if sub-process has been backgrounded

Closed / Fixed218311ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:56:00
OriginalBugID: 3704 Bug
Version: 8.2.2
SubmitDate: '1999-11-29'
LastModified: '1999-12-02'
Severity: MED
Status: Closed
Submitter: techsupp
ChangedBy: angie
OS: Solaris
OSVersion: Solaris 2.6
Machine: Ultra 5
FixedDate: '2000-10-25'
ClosedDate: '1999-12-02'


Hello,

I submitted a bug report earlier, but I wanted to add a comment.
This is regarding the problem with 8.2.2 whereby it is impossible to exit
the shell until all backgrounded processes have exited.

E.g.
exec xcalc &
exit

---> hangs until I exit the calculator.

In an attempt to figure out the problem, I recompiled tcl 8.2.2 with
debugging symbols, and the problem went away.
Since I don't have time to figure out what is going on here, I'll chalk up
the problem to some quirk in the gcc compiler.

Thank you
Jean-Marie White
Cisco Systems

Name: Jean-Marie White

ReproducibleScript:
Invoke tcl shell like this: tclsh8.2

at the prompt type:
exec xcalc &
exit

The shell hangs and doesn't exit until I exit the calculator. (or any other application that I spawn in the background).

8.0 behaves differently and the shell exits without need to exit the child process first.

DesiredBehavior:
The shell should exit without need to exit the child process first.



This exits as expected using tclsh8.2 on Sol2.5.1 and Sol7
when running from tcsh, leaving xcalc running. 
-- 11/29/1999 hobbs
welch Closed ticket [218311ffff]. [History diff]2000-10-26 08:19:00
dgp Ticket [218311ffff]: 3 changes [History diff]2001-04-19 04:37:26
Log in (anonymous is fine) to add a comment.