Tcl Source Code

View Ticket
Login
Ticket UUID: 1315115
Title: TIP #240 (An Ensemble Command to Manage Processes)
Type: Patch Version: TIP Implementation
Submitter: stevebold Created on: 2005-10-06 16:26:56
Subsystem: 24. Channel Commands Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Open Last Modified: 2005-10-07 15:01:52
Resolution: None Closed By:
    Closed on:
Description:
* Most of the new code is in TclIOCmd.c which is 
getting quite large, another possibility is a new file 
TclProcess.c

* A new platform specific function TclGetProcessStatus
() is like Tcl_WaitPid() but provides a platform 
independent means of indicating the error condition if an 
invalid process id is specified. I don’t think Tcl_WaitPid
() can do this given its current interface

* A new platform specific function Tcl_GetPidHandle() is 
the converse of Tcl_GetPid()

* TclpCreateProcess() was inconsistent in its treatment 
of NULL TclFile’s – on UNIX is meant use the parent 
channels, on Windows it meant leave them 
disconnected. TclCreatePipeline() always connects them
  (as far as I can tell), I’ve changed the UNIX 
implementation to be consistent with that on Windows.

* Successfully runs the examples shown in the TIP on 
Solaris 2.8 and Windows XP and no regressions seen in 
existing tests

* I’ve not done anything special for macosx

* new tests and docs not yet done
User Comments: stevebold added on 2005-10-07 15:01:52:

File Deleted - 151632:

stevebold added on 2005-10-07 14:56:43:

File Added - 151633: tip240.8_5a3.patch

stevebold added on 2005-10-07 14:56:42:
Logged In: YES 
user_id=810219

I entered a filename for the patch file but forgot to check the 
box. Let's try again.

stevebold added on 2005-10-07 14:54:23:

File Added - 151632: tip240.8_5a3.patch

stevebold added on 2005-10-07 14:54:22:
Logged In: YES 
user_id=810219

I entered a filename for the patch file but forgot to check the 
box. Let's try again.

Attachments: