Skip to content
Tcl Source Code History Of Ticket 616527ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 616527ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 616527ffffffffffffffffffffffffffffffffff

  1. Ticket change [37668d3f41] (rid 107269) by nobody on 2002-09-30 13:11:15:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Not shure, if this is the right category. The third
      word of $errorCode gives the returncode (the
      "errorlevel" in M$-terminology). In Win32, this is a
      16bit-Field (in old MSDOS-Days it was a BYTE).
      errorCode only holds the low-byte, it seems. Is this a
      bug or intended?
      
    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: "nobody"
    9. subsystem initialized to: "52. Portability Support"
    10. title initialized to: "Errorlevel on Win32 with EXEC"
    11. type initialized to: "Bug"
  2. Ticket change [28442bf0cf] (rid 88671) by dgp on 2002-09-30 21:02:54:

    1. assignee changed to: "andreas_kupries"
    2. foundin changed to: "obsolete: 8.4.1"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      An [exec] creates a "pipe" channel, so it's really a channel
      type
      issue.  Not obvious, I know.  You can check TIP 16 for details.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. subsystem changed to: "27. Channel Types"
    7. username: "dgp"
  3. Ticket change [1a80558bff] (rid 122983) by davygrvy on 2002-11-28 06:21:45:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      Eventhough GetExitCode(hProcess, &dwCode) returns a 
      DWORD, for cross-platformness one should be limited to 0-
      127 only, IIRC.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  4. Ticket change [a07b4f51cd] (rid 96820) by davygrvy on 2002-12-08 22:48:27:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      From Tcl_WaitPid() in win/tclWinPipe.c:
      
          *statPtr = ((exitCode << 8) & 0xff00);
      
      all we get is a byte range.  Yes, it looks odd by shifting left 
      and truncating, but this is for the WEXITSTATUS() macro 
      back in TclCleanupChildren() in generic/tclPipe.c
      
      I have some additional code i'm playing with to enable 
      Tcl_WaitPid() to return exit exception codes.  It looks like 
      this, but isn't ready for a commit just yet:
      
      if (exitCode & 0xC0000000) {
          /*
           * A fatal exception occured.
           */
          switch (exitCode) {
      case EXCEPTION_INT_OVERFLOW:
          *statPtr = SIGFPE;
          break;
      ....
          }
      } else {
          /*
           * Non exception, normal, exit code.  Note that 
      the exit code
           * is truncated to a byte range.
           */
          *statPtr = ((exitCode << 8) & 0xff00);
      }
      
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  5. Ticket change [335e0e8ddf] (rid 106584) by davygrvy on 2003-01-24 16:11:51:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      This bug should be closed. exit codes are only within a BYTE 
      range.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  6. Ticket change [b10f5d9cf0] (rid 98088) by davygrvy on 2003-02-15 03:24:01:

    1. assignee changed to: "davygrvy"
    2. closedate changed to: "2003-02-14T20:24:01"
    3. closer changed to: "davygrvy"
    4. icomment:
      Logged In: YES 
      user_id=7549
      
      0-255 is the range and is built into the WEXITSTATUS() 
      macro.
      
      
    5. login: "davygrvy"
    6. mimetype: "text/plain"
    7. status changed to: "Closed"
    8. username: "davygrvy"