This is not necessarily the current version of this TIP.
|Title:||Quickly Exit with Non-Blocking Blocked Channels|
|Version:||$Revision: 1.3 $|
|Author:||Alexandre Ferrieux <alexandre dot ferrieux at gmail dot com>|
|Created:||Friday, 24 February 2012|
|Keywords:||close, exit, flush, blocking, nonblocking|
This TIP reverts an age-old documented behavior that is useless, and the ill effects of which cannot be circumvented: Tcl's insistence on flushing even non-blocking channels on exit.
The close.n manpage says:
Channels are automatically closed when an interpreter is destroyed and when the process exits. Channels are switched to blocking mode, to ensure that all output is correctly flushed before the process exits.
So, assuming the application has been using nonblocking IO all the time to stay responsive even