Tcl Source Code

View Ticket
Login
Ticket UUID: f5d0e75a49764f68093df4175344045a5f2d4ae7
Title: tcl::process manpage and TIP does not match implementation
Type: Bug Version: 9.0
Submitter: apnadkarni Created on: 2024-09-15 03:02:22
Subsystem: - New Builtin Commands Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2025-02-19 05:45:22
Resolution: Fixed Closed By: apnadkarni
    Closed on: 2025-02-19 05:45:22
Description:

The tcl::process status manpage (and TIP 462) state - If pids is specified as a list of PIDs then the command only returns the status of the matching subprocesses if they exist, and raises an error otherwise.

In the implementation, no error is raised, the pids that are not subprocesses are simply ignored (which I think is actually the preferable behavior).

Either way, docs/TIP and implementation should be made consistent.

Same issue with tcl::process purge.

User Comments: apnadkarni added on 2025-02-19 05:45:22:
Fixed in [2ed32fc21a].

apnadkarni added on 2025-02-14 02:51:09:
Oops, thanks, I should have said commit [7a71c8de17].

pooryorick added on 2025-02-14 00:06:15:

The fix is in [bug-f5d0e75a49], not [bug-7a71c8de17].


jan.nijtmans added on 2025-02-12 17:02:13:
+1

oehhar added on 2025-02-12 17:00:59:

Change is ok and may be merged. The TIP might be amended. Thanks for all, Harald


apnadkarni added on 2025-02-12 15:25:09:
Proposed documents the current implementation.

apnadkarni added on 2025-02-11 17:10:01:
Proposed fix in [bug-7a71c8de17]