Artifacts Associated With Ticket 1267871fffffffffffffffffffffffffffffffff
Ticket change [10f51d388c] (rid 95056) by matt-newman on 2005-08-24 10:08:00:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In the win32 world many people use exit codes greater than 8 bits. This patch preserves the Posix signal support in WaitPid on windows, but allows the true exit status to be reported. This kind of support is essential when calling many systems mgmt utilities from Microsoft and others.....
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "matt-newman"
- subsystem initialized to: "None"
- title initialized to: "fully support win32 exit codes"
- type initialized to: "Patch"
Add attachment "patch1" [8d6b7b1e8b] (rid 127929) by matt-newman on 2005-08-24 17:08:01.
Ticket change [124268b3c4] (rid 95280) by matt-newman on 2005-08-24 17:08:02:
- icomment:
File Added - 146791: patch1
- login: "matt-newman"
- mimetype: "text/plain"
- username: "matt-newman"
- icomment:
Ticket change [e50502560b] (rid 88056) by hobbs on 2005-08-25 02:05:20:
- assignee changed to: "davygrvy"
- icomment:
Logged In: YES user_id=72656 Dave - you looked into this before, no?
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [ab5f625dd3] (rid 101094) by davygrvy on 2005-08-25 12:28:16:
- icomment:
Logged In: YES user_id=7549 interesting.. Doesn't Tcl_WaitPid need any modifying with this?
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [32cd4bd69d] (rid 93684) by matt-newman on 2005-08-25 16:16:11:
- icomment:
Logged In: YES user_id=1333796 WaitPid does not need changing, because the POSIX macros "do the right thing" - only code that makes assumptions about the status without reference to the macros would need changing, and there is no such code in tcl. The only limitation imposed on exit codes is that they can't set the top byte to match 0xc0 - which practically limits them to 24 bits. But as far as I can see that is a windows limit too. I was able to test both the large exit code and the SEGV- type senarios and all looks well...
- login: "matt-newman"
- mimetype: "text/plain"
- username: "matt-newman"
- icomment:
Ticket change [1db4bde496] (rid 90858) by patthoyts on 2005-11-03 19:39:41:
- icomment:
Logged In: YES user_id=202636 It might be useful to have a test that checks the behaviour of this patch. Applying this to the current 8.4 tip the test suite passes in normal, symbols and thread builds so it looks fine to me.
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [8a96bfbf00] (rid 127419) by davygrvy on 2005-11-04 04:53:19:
- assignee changed to: "patthoyts"
- icomment:
Logged In: YES user_id=7549 Pat, I don't tools at this time.. please take over. thanks.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
Ticket change [c99291d3d9] (rid 122309) by patthoyts on 2005-11-04 18:58:52:
- icomment:
Logged In: YES user_id=202636 OK - this patch doesn't seem to cause any problems but I don't see just what it achieves either. Using a script of 'exit [lindex $argv 0]' for various values shows no difference between 8.4.11 and the patched version. Likewise I see no obvious differences in the result of 'exec programreturningerrcodes' for various return values. I need a better description of just what is being achieved here before applying this so that we can add some tests.
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [1bacd2b0ea] (rid 123192) by matt-newman on 2005-11-04 19:15:56:
- icomment:
Logged In: YES user_id=1333796 this patch is to allow exit codes greater that 255 - try: exit [expr { 1 << 15 }] It is about BOTH being able to exit with such a status, but far more importantly it is about being able to exec a process that returns such a return code and being able to obtain that return code. create exit.tcl as: exit [expr { 1 << 15 }] and execute: set rc [catch { exec [info nameof] exit.tcl } err] puts [list $rc $err $errorCode] with vanilla 8.4 you get 0 {} {} with the patched version you get: 1 {child process exited abnormally} {CHILDSTATUS 3152 32768} - login: "matt-newman"
- mimetype: "text/plain"
- username: "matt-newman"
- icomment:
Ticket change [9a6ec4e808] (rid 110943) by patthoyts on 2005-11-05 05:57:34:
- icomment:
Logged In: YES user_id=202636 OK. Thank you. Applied the patch plus a few tests to 8.4 Up-ported to 8.5 HEAD too. (patch attached for the record).
- login: "patthoyts"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- username: "patthoyts"
- icomment:
Add attachment "1267871-exitcodes-85.patch" [7303b4ad5d] (rid 104971) by patthoyts on 2005-11-05 05:57:35.
Ticket change [f35007bc9b] (rid 129687) by patthoyts on 2005-11-05 05:57:35:
- icomment:
File Added - 155069: 1267871-exitcodes-85.patch
- login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [61b6edcab9] (rid 92290) by patthoyts on 2005-11-05 06:06:44:
- status changed to: "Closed"
Ticket change [dea4b1a4e7] (rid 114884) by patthoyts on 2005-11-05 06:06:45:
- closedate changed to: "2005-11-04T23:06:45"
- closer changed to: "patthoyts"