diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2012-04-16 06:07:33 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2012-04-16 06:07:33 (GMT) |
commit | 38efaa7df7eb28134468c49503ae5613eca41384 (patch) | |
tree | 87485cb6588fdd50ea6eabbf57a9939ede163315 /doc/FileSystem.3 | |
parent | 4ed9cd01beab8ab734a04be78ee3754af7488f14 (diff) | |
parent | 6e88f46369735979af46d8a1fa1a3a0df8fb572e (diff) | |
download | tcl-38efaa7df7eb28134468c49503ae5613eca41384.zip tcl-38efaa7df7eb28134468c49503ae5613eca41384.tar.gz tcl-38efaa7df7eb28134468c49503ae5613eca41384.tar.bz2 |
* doc/FileSystem.3 (Tcl_FSOpenFileChannelProc): [Bug 3518244]: Fixed
documentation of this filesystem callback function; it must not
register its created channel - that's the responsibility of the caller
of Tcl_FSOpenFileChannel - as that leads to reference leaks.
Diffstat (limited to 'doc/FileSystem.3')
-rw-r--r-- | doc/FileSystem.3 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/FileSystem.3 b/doc/FileSystem.3 index 32407d8..c4a28c2 100644 --- a/doc/FileSystem.3 +++ b/doc/FileSystem.3 @@ -521,7 +521,7 @@ In addition, if \fIinterp\fR is non-NULL, \fBTcl_FSOpenFileChannel\fR leaves an error message in \fIinterp\fR's result after any error. .PP The newly created channel is not registered in the supplied interpreter; to -register it, use \fBTcl_RegisterChannel\fR, described below. +register it, use \fBTcl_RegisterChannel\fR. If one of the standard channels, \fBstdin, stdout\fR or \fBstderr\fR was previously closed, the act of creating the new channel also assigns it as a replacement for the standard channel. @@ -1131,8 +1131,9 @@ In addition, if \fIinterp\fR is non-NULL, the \fBTcl_FSOpenFileChannelProc\fR leaves an error message in \fIinterp\fR's result after any error. .PP -The newly created channel is not registered in the supplied -interpreter; to register it, use \fBTcl_RegisterChannel\fR. If one of +The newly created channel must not registered in the supplied +interpreter; that task is up to the caller of +\fBTcl_FSOpenFileChannel\fR (if necessary). If one of the standard channels, \fBstdin, stdout\fR or \fBstderr\fR was previously closed, the act of creating the new channel also assigns it as a replacement for the standard channel. |