Skip to content
Tcl Source Code Artifact [6ee765099b]
Login

Artifact [6ee765099b]

Artifact 6ee765099b38ab07c375c6ec58a8f2dd9cc92960:

Ticket change [6ee765099b] - New ticket [749639ffffffffff|749639ffff] <i>exit fom child process hangs if --enable-threads set</i>. by dizzi on 2003-06-05 16:31:15.
D 2003-06-05T16:31:15
J assignee andreas_kupries
J cmimetype text/plain
J comment When\scompiled\swith\s--enable-threads\sTcl8.4.3\sdoesn't\shandle\ncorrectly\sthe\sexit\sfrom\schild\sprocesses\screated\swith\nfork\sif\sthey\ndon't\sexecl\ssome\sother\sprogram.\n\nThe\sproblem\sis\sexplained\sin\sdetail\sin\sthis\sbug\sreport\nagainst\sTclX\nthat\sI\sfiled\syesterday,\swhich\sseems\sin\sfact\sa\sTcl8.4\sbug:\n\nhttp://sourceforge.net/tracker/index.php?func=detail&aid=748835&group_id=13247&atid=113247\n\nThe\sproblem\sseems\sto\sbe\sthat\swhen\sthe\schild\sprocess\nexits\swithout\nexecuting\sanother\sprogram\sit\ssends\sa\s'q'\smessage\sto\sa\nnotifier\nprocess\sthat\sbelongs\sto\sits\sparent.\sThe\schild\sthen\nwaits\sfor\ssome\nsignal\sfrom\sthe\sparent\sthat\sis\snever\ssent\sand\shangs\nforever.\n\nIt\sis\strue\sthat\sTcl\sdoesn't\shave\sthe\sfork\sand\sexecl\ncommands,\sbut\nthese\scommands\sare\sprovided\sby\sthe\sTclX\sextension\sand\sthey\ncan't\swork\scorrectly\sbecause\sof\sa\sbug\sin\sthe\sTcl\sexit\scode.\n\nThe\spatch\sin\sattachment\sseems\sto\sfix\sthe\sproblem,\sbut\nsince\sI\sdon't\nreally\sknow\show\sthe\sthreaded\snotifier\sworks\sit\smay\sbe\nwrong.\n\nMy\ssolution\ssimply\sdoes\snothing\sin\nTcl_FinalizeNotifier()\sif\sthe\ncurrent\sprocess\sis\snot\sthe\sone\swhich\screated\sthe\nnotifier\sthread.\nIn\sthis\sway\sthe\snotifier\sthread\scan\sbe\sterminated\sonly\nby\sits\sparent\nand\schild\sprocesses\sshould\sbe\sable\sto\sexit\swithout\ninterfering\swith\nthe\sparent\sthreads.\n\n--\s\nMassimo\sDal\sZotto\s<[email protected]>\n
J foundin obsolete:\s8.4.3
J priority 5\sMedium
J resolution None
J status Open
J submitter dizzi
J subsystem 49.\sThreading
J title exit\sfom\schild\sprocess\shangs\sif\s--enable-threads\sset
J type Bug
K 749639ffffffffffffffffffffffffffffffffff
U dizzi
Z 975f2fa5ba5aef76f5463b9fa0be1754