TIP 669: Pipe PIDs as Channel Property

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

Abstract

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.

Outline

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.

Implementation

To do.

Copyright

This document has been placed in the public domain.