tcl-rivet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@dedasys.com (David N. Welton)
Subject Re: Error logging
Date Mon, 20 Jan 2003 06:27:05 GMT
Damon Courtney <damon@your.unreality.com> writes:

> foreach fp [file channels] {
>     if {[string match std* $fp]} { continue }
>     catch { close $fp }
> }
> 
>     That's pretty well it. 0-]  No fuss, no muss.

What if there is something (either sockets or files) that was already
opened somewhere... say in the server startup code.  I think it should
try and be a bit cleverer by saving the state in some corresponding
'before page' code.

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Mime
View raw message