Artifact
055d139485e2350d995e0fa79ac9174c891e4694db40f45bfce5cc37c664186b:
Ticket change
[055d139485]
- New ticket
[a35d210bfcd3d178|a35d210bfc] <i>exec:ed process killed with parent</i>.
by
anonymous on
2022-11-30 09:01:43.
D 2022-11-30T09:01:43.820
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment I\shave\sa\sGUI\sthat\sunder\scertain\sconditions\smay\srestart\sitself.\sOn\sWindows\s(11)\sI\snoticed\sthat\son\sthe\ssecond\srestart,\sthe\sexec:ed\schild\sprocess\sis\skilled\swhen\sthe\sparent\sprocess\sexits.\sI\swas\sable\sto\sreproduce\sthis\sbehavior\swith\sa\ssmall\stest\sscript\sattached\sbelow.\sThe\ssecond\stime\s'Restart'\sis\spressed\sthe\schild\swill\sexit\simmediately\s(with\sthe\sparent).\sIt\sworks\sas\sexpected\sunder\sLinux.\r\n---------------------\r\nproc\srestart\s{}\s{\r\n\s\s\s\sglobal\sargv0\r\n\s\s\s\sglobal\sxcount\r\n\r\n\s\s\s\sexec\s[info\snameofexecutable]\s$argv0\s[expr\s{$xcount\s+\s1}]\s&\r\n\s\s\s\sdestroy\s.\r\n}\r\n\r\nif\s{[llength\s$argv]\s>\s0}\s{\r\n\s\s\s\sset\sxcount\s[lindex\s$argv\s0]\r\n}\selse\s{\r\n\s\s\s\sset\sxcount\s1\r\n}\r\n\r\npackage\srequire\sTk\s8.6\r\nttk::label\s.l\s-text\s"Invocation\s#$xcount"\r\nttk::button\s.b0\s-text\s"Restart"\s-command\s[list\srestart]\r\nttk::button\s.b1\s-text\s"Quit"\s-command\s[list\sdestroy\s.]\r\ngrid\s.l\s\s-row\s0\s-column\s0\s-sticky\sew\s-pady\s4\s-padx\s2\s-columnspan\s2\r\ngrid\s.b0\s-row\s1\s-column\s0\s-pady\s2\s-padx\s2\r\ngrid\s.b1\s-row\s1\s-column\s1\s-pady\s2\s-padx\s2
J foundin 8.6.13
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 5265eac58c4c5f6313ef60531ea3f8bfbfb9f15f
J resolution None
J severity Severe
J status Open
J submitter anonymous
J subsystem 16.\sCommands\sA-H
J title exec:ed\sprocess\skilled\swith\sparent
J type Bug
K a35d210bfcd3d1785dd7764d957b20fec35b55d1
U anonymous
Z 1406306c9db0e81afc3f9e2d21ca25f6