Skip to content
Tcl Source Code Artifact [078d303703]
Login

Artifact [078d303703]

Artifact 078d303703d90e24d1823e30f13e038323e3ec12c010f38fd6433db62a709fb3:

Ticket change [078d303703] - New ticket [21dbc600ae0a005a|21dbc600ae] <i>exec hangs, iff stdin &amp; stdout both were previously closed.</i>. by avl42 on 2022-12-06 11:45:49.
D 2022-12-06T11:45:49.998
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-plain
J comment simplest\stest\sscript:\r\n\s\s\sclose\sstdin;\sclose\sstdout;\sexec\strue\r\n\r\nWorkaround\s(assuming\sthat\sstdin/-out\sjust\sneed\sto\sbe\sclosed):\r\n\s\s\sclose\sstdin;\sclose\sstdout;\sopen\s/dev/null\sr;\sexec\strue\r\n\r\nIn\seither\scase:\sexec\sfirst\screates\sa\spipe,\sand\swhile\sthe\schild\sruns,\sthe\sparent\r\nwaits\son\sthat\spipe\sfor\sEOF\s(probably\sinitiated\sfrom\sanother\sthread).\r\n\r\nWith\sat\sleast\sone\sof\sstdin\sor\sstdout\sNOT\sclosed\s(or\sre-opened\safterwards),\sthe\sEOF\son\sthat\spipe\sis\sseen,\sbut\swith\sBOTH\sstdin/-out\sclosed,\snothing\sever\scloses\sthe\swrite-end\sof\sthe\spipe.\r\n\r\nPS:\sthat\spipe\sis\sNOT\sthe\sone\sby\swhich\sthe\smain\sprocess\scommunicates\sto\sthe\schild.
J foundin 8.6.8
J is_private 0
J login avl42
J priority 5\sMedium
J private_contact 2287a4a5f84eadc47fdc912609f4f98319372d33
J resolution None
J severity Severe
J status Open
J submitter avl42
J subsystem 16.\sCommands\sA-H
J title exec\shangs,\siff\sstdin\s&\sstdout\sboth\swere\spreviously\sclosed.
J type Bug
K 21dbc600ae0a005a7f879a05580550a8da257b14
U avl42
Z d70aa4a9671a531dd62f32e468228251