Skip to content
Tcl Source Code History Of Ticket 1805794fff
Login

History Of Ticket 1805794fff

Artifacts Associated With Ticket 1805794fff

  1. Ticket change [11a257d216] (rid 95182) by kitchen on 2007-10-01 16:54:21:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      TCL is unable to deal with Unix time being reset to a
      value less than the current time.  It causes timers to
      stop working until the time "catches up" to where it was
      originally set.
      
      For example if I set the system time backwards by 100
      seconds and I have programmed the system for a 100mS
      timer I will not receive a timer event for 100 seconds.
      
      In my case I happen to be doing this from the C language
      interface using Tcl_CreateTimerHandler() however I'm sure
      this affects all aspects of timer operation under TCL.
      
      Setting the system time forward is less of a problem.
      It simply causes the timers to immediately wake up --
      assuming that the time has been set forward far enough.
      
      I realize this may be difficult to solve. select()
      doesn't have a problem with it.  I suspect that select()
      must use the kernel jiffy counter rather than looking at
      the system time.
      
      A trick I've used elsewhere in my code is to look at the
      system time when select() wakes up and compare it to the
      previous pass and if the difference is several times
      larger than the select() sleep time assume the clock has
      been reset and adjust things in the program accordingly.
      
      
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "kitchen"
    10. subsystem initialized to: "03. Timer Events"
    11. title initialized to: "changing unix system time"
    12. type initialized to: "Bug"
  2. Ticket change [bbd2ee8ff1] (rid 129553) by ferrieux on 2008-04-01 05:06:19:

    1. icomment:
      Logged In: YES 
      user_id=496139
      Originator: NO
      
      See also TIP 302 for an analysis of the possible solutions.
      
      http://www.tcl.tk/cgi-bin/tct/tip/302.html
      
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"