Skip to content
Tcl Source Code Artifact [38fef3770f]
Login

Artifact [38fef3770f]

Artifact 38fef3770f9aba09bbda9dd5dc929d94b72914e4:

Ticket change [38fef3770f] - New ticket [1464890fffffffff|1464890fff] <i>after command hangs when system time changes</i>. by jflarvoire on 2006-04-05 12:37:52.
D 2006-04-05T12:37:52
J assignee kennykb
J cmimetype text/plain
J comment Hello,\n\nI\swish\sto\sreopen\sbug\s#432038,\sand\sits\sduplicate\sbug\n#1052859:\n\nChanging\sthe\ssystem\sclock\shangs\sall\sTcl\sevents\shandlers\nthat\sare\sscheduled\swith\sthe\safter\scommand.\nThis\smakes\sit\simpossible\sto\shave\sreliable\speriodic\nhandlers\swritten\sin\spure\sTcl.\s(They\smay\sdie\nunexpectedly\sanytime\ssomebody\sruns\sthe\sdate/time\scommand)\n\nI've\sjust\sbeen\sbadly\shurt\sby\sthis\svery\sproblem\son\sa\nlarge\scluster\swe\smanage:\sWe\shad\ssystem\smonitoring\nscripts\swritten\sin\sTcl\sthat\skept\sdying\smysteriously\son\nsome\sof\sthe\snodes.\sAnd\sthe\sillness\swas\sspreading\swith\ntime...\n\nContrary\sto\swhat\swas\swritten\sin\sa\scomment\sof\sbug\n#432038,\susing\sNTP\sdoes\snot\sprevent\sthe\sproblem:\nWe\ssaw\sthe\sproblem\son\smachines\swith\sharware\sclocks\nslowly\sdrifting.\sAfter\seach\sreboot,\sNTP\stakes\ssome\stime\nfor\sresynchronizing\sthe\ssystem\stime...\shanging\sall\sour\nTcl\sscripts\stimers\swhen\sit\seventually\sdoes.\n\nAlso\sI\scompletely\sdisagree\swith\sthe\sclosing\scomment\sin\nbug\s#1052859\sabout\sthe\slack\sof\smonotonically\sincreasing\ntimers\sin\sboth\sUnix\sand\sWindows.\nThe\sUnix\ssleep\scommand,\sused\sin\stons\sof\sshell\sscripts,\nis\scompletely\simmune\sto\ssuch\ssystem\sdate/time\schanges.\nThis\sis\seasy\sto\sverify.\sLet's\suse\sin\sTcl's\safter\ncommand\sthe\ssame\stiming\sfunction\sthat\sUnix'\ssleep\sdoes.\nLikewise,\sWindows'\swaitable\stimers\sare\simmune\stoo.\sI\njust\sverified\sit\swith\sthe\ssample\scode\sfor\nCreateWaitableTimer\sin\sMSDN\slibrary.\n\nJean-François
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter jflarvoire
J subsystem 03.\sTimer\sEvents
J title after\scommand\shangs\swhen\ssystem\stime\schanges
J type Bug
K 1464890fffffffffffffffffffffffffffffffff
U jflarvoire
Z 64a03c23dc7d2705c18fb247abc34187