TIP 669: Pipe PIDs as Channel Property

Author:		Donal Fellows <[email protected]>
State:		Draft
Type:		Project
Created:	24-05-2023
Tcl-Version:	9.1
Tcl-Branch:	tip-669


This TIP is about making the information about pipes more regular in line with the general model of channels. It adds an option, -pid, to the pipe channel type.


The mechanism behind chan configure allows for all sorts of general concepts to be handled, depending on the channel type. This TIP makes the information currently available via the pid command also available via a chan configure* option for pipe channels, -pid. This option will be read-only. When a pipe channel does not know what process ID (or IDs) is on the other end, the value of the option will be empty; this is expected to be the case for pipes made with chan pipe.

Safe interpreters, in the event that they get a pipe channel, will not see that the option exists.


To do.


This document has been placed in the public domain.