Skip to content
Tcl Source Code Artifact [e8f4880a6b]
Login

Artifact [e8f4880a6b]

Artifact e8f4880a6bde9b9d14f8ccdeba814964fad1219c:

Ticket change [e8f4880a6b] - Ticket [219149ffffffffff|219149ffff] <i>bad interaction of input redirect from named pipe with backg</i> status still Open with 4 other changes by ferrieux on 2013-03-24 22:27:40.
D 2013-03-24T22:27:40
J icomment To\sme,\s[exec\s&]\sdoes\sthe\sbest\scompromise\sbetween\sasynchronicity\sand\simmediate\sreporting\sof\slethal\sfailures.\n\nThe\smost\spopular\s"immediate\sfailure"\sthat\s[exec\s&]\sreports\ssynchronously\sis\sone\sabout\sthe\sexecutable\s(not\sfound,\sor\simproper\srights).\sNobody\scomplains\sabout\sthat.\n\nIn\sthe\ssame\slogic,\sit\salso\sreports\s*synchronously*\sabout\sa\sfailure\sto\sdo\sthe\sredirections.\sThis\sis\sdone\sby\sputting\sthe\sopen()\s\s*before*\sthe\ssync\spoint.\sAgain,\severybody\sis\shappy\sabout\sthis\sbehavior\sI\sguess.\n\nThen,\sin\sthe\sspecific\scase\sof\sa\snamed\spipe\swith\snobody\syet\son\sthe\sother\send,\sthis\svery\sopen()\swill\sblock.\sThat's\sa\snecessary\sconsequence\sof\sthe\sabove.\sIt\smay\ssurprise\speople\sbecause\sit\sis\sunlike\sthe\sBourne\sShell,\swhere\sthe\sopen()s\slay\scompletely\swithin\sthe\sforked\sprocess\sand\sno\srendezvous\swill\spropagate\sthe\sblocking.\sBut\sI\sstill\sthink\sthis\srendezvous\sis\sa\ssuperior\sfeature\sof\sTcl,\sgeared\stowards\sbetter\serror\sreporting.\n\nSo\sI'd\srather\sdocument\sthe\sgotcha\sthan\soverhaul\sa\ssane\sbehavior.\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 219149ffffffffffffffffffffffffffffffffff
U ferrieux
Z dd6396a841835d834839315852043a66