Skip to content
Tcl Source Code History Of Ticket 1267871
Login

History Of Ticket 1267871

Artifacts Associated With Ticket 1267871

  1. Ticket change [10f51d388c] (rid 95056) by matt-newman on 2005-08-24 10:08:00:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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.....
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "matt-newman"
    9. subsystem initialized to: "None"
    10. title initialized to: "fully support win32 exit codes"
    11. type initialized to: "Patch"
  2. Add attachment "patch1" [8d6b7b1e8b] (rid 127929) by matt-newman on 2005-08-24 17:08:01.

  3. Ticket change [124268b3c4] (rid 95280) by matt-newman on 2005-08-24 17:08:02:

    1. icomment:
      
      
      File Added - 146791: patch1
      
      
      
    2. login: "matt-newman"
    3. mimetype: "text/plain"
    4. username: "matt-newman"
  4. Ticket change [e50502560b] (rid 88056) by hobbs on 2005-08-25 02:05:20:

    1. assignee changed to: "davygrvy"
    2. icomment:
      Logged In: YES 
      user_id=72656
      
      Dave - you looked into this before, no?
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  5. Ticket change [ab5f625dd3] (rid 101094) by davygrvy on 2005-08-25 12:28:16:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      interesting..
      
      Doesn't Tcl_WaitPid need any modifying with this?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  6. Ticket change [32cd4bd69d] (rid 93684) by matt-newman on 2005-08-25 16:16:11:

    1. 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...
      
      
    2. login: "matt-newman"
    3. mimetype: "text/plain"
    4. username: "matt-newman"
  7. Ticket change [1db4bde496] (rid 90858) by patthoyts on 2005-11-03 19:39:41:

    1. 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.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  8. Ticket change [8a96bfbf00] (rid 127419) by davygrvy on 2005-11-04 04:53:19:

    1. assignee changed to: "patthoyts"
    2. icomment:
      Logged In: YES 
      user_id=7549
      
      Pat, I don't tools at this time..  please take over. thanks.
      
      
    3. login: "davygrvy"
    4. mimetype: "text/plain"
    5. username: "davygrvy"
  9. Ticket change [c99291d3d9] (rid 122309) by patthoyts on 2005-11-04 18:58:52:

    1. 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.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  10. Ticket change [1bacd2b0ea] (rid 123192) by matt-newman on 2005-11-04 19:15:56:

    1. 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}
      
      
      
      
    2. login: "matt-newman"
    3. mimetype: "text/plain"
    4. username: "matt-newman"
  11. Ticket change [9a6ec4e808] (rid 110943) by patthoyts on 2005-11-05 05:57:34:

    1. 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).
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. resolution changed to: "Accepted"
    5. username: "patthoyts"
  12. Add attachment "1267871-exitcodes-85.patch" [7303b4ad5d] (rid 104971) by patthoyts on 2005-11-05 05:57:35.

  13. Ticket change [f35007bc9b] (rid 129687) by patthoyts on 2005-11-05 05:57:35:

    1. icomment:
      
      
      File Added - 155069: 1267871-exitcodes-85.patch
      
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  14. Ticket change [61b6edcab9] (rid 92290) by patthoyts on 2005-11-05 06:06:44:

    1. status changed to: "Closed"
  15. Ticket change [dea4b1a4e7] (rid 114884) by patthoyts on 2005-11-05 06:06:45:

    1. closedate changed to: "2005-11-04T23:06:45"
    2. closer changed to: "patthoyts"