vwait behavior
- From: rfwooden84@xxxxxxx
- Date: Wed, 5 Mar 2008 20:46:11 -0800 (PST)
I've been wrestling with this problem for several days now. I run the
following loop on a linux (red hat) web server and it will run fine
for sometimes up to 2 or 3 days before it crashes. Most often it runs
for less than 48 hours. (I know it was not due to a server crash -
according to uptime.)
Is there something wrong with the way I'm implementing the pause proc
that causes some weird behavior?
Thanks for any help!
# pauses for n milliseconds
proc pause { {msecs 1000} } {
global gv;
after $msecs "set vpause 1"
vwait vpause
}
while { 1 } {
# print a message to a log file
pause [expr 60*60*1000]
}
.
- Follow-Ups:
- Re: vwait behavior
- From: Donald Arseneau
- Re: vwait behavior
- From: George Peter Staplin
- Re: vwait behavior
- Prev by Date: Re: Virtual numeric keypad?
- Next by Date: Using MD5 hash with binary strings
- Previous by thread: New Tcl editor and validator
- Next by thread: Re: vwait behavior
- Index(es):
Relevant Pages
|