vwait behavior




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]

}

.



Relevant Pages

  • Re: A Linux newbee
    ... >> have been a Windows zombie for sometime now but I want to break away ... >> Linux web server, basic web server at first but would like to expand ... Unfortunately, with Red Hat, copying will no longer be "legal and even ...
    (comp.os.linux.networking)
  • Re: Redhat Version
    ... >> I am interested in setting up a web server to host our companies web ... Red Hat 9 is on sale in our local ...
    (linux.redhat)
  • Re: Recommended books for beginners
    ... > I was just hoping someone could recommend some good books for someone ... > starting to use Linux. ... We have Red Hat 9 installed. ... > server, web server, etc. ...
    (alt.os.linux)
  • Re: Recommended books for beginners
    ... We have Red Hat 9 installed. ... > server, web server, etc. ... Sounds as if "Red Hat Linux Unleashed" would be a good starting ... the red book, AFAIK there's a special Linux ...
    (comp.os.linux.misc)
  • Recommended books for beginners
    ... I was just hoping someone could recommend some good books for someone ... starting to use Linux. ... We have Red Hat 9 installed. ... server, web server, etc. ...
    (comp.os.linux)