Artifacts Associated With Ticket 616527ffffffffffffffffffffffffffffffffff
Ticket change [37668d3f41] (rid 107269) by nobody on 2002-09-30 13:11:15:
- assignee initialized to: "mdejong"
- cmimetype initialized to: "text/plain"
- 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?
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "Errorlevel on Win32 with EXEC"
- type initialized to: "Bug"
Ticket change [28442bf0cf] (rid 88671) by dgp on 2002-09-30 21:02:54:
- assignee changed to: "andreas_kupries"
- foundin changed to: "obsolete: 8.4.1"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "27. Channel Types"
- username: "dgp"
Ticket change [1a80558bff] (rid 122983) by davygrvy on 2002-11-28 06:21:45:
- 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.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [a07b4f51cd] (rid 96820) by davygrvy on 2002-12-08 22:48:27:
- 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); } - login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [335e0e8ddf] (rid 106584) by davygrvy on 2003-01-24 16:11:51:
- icomment:
Logged In: YES user_id=7549 This bug should be closed. exit codes are only within a BYTE range.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [b10f5d9cf0] (rid 98088) by davygrvy on 2003-02-15 03:24:01:
- assignee changed to: "davygrvy"
- closedate changed to: "2003-02-14T20:24:01"
- closer changed to: "davygrvy"
- icomment:
Logged In: YES user_id=7549 0-255 is the range and is built into the WEXITSTATUS() macro.
- login: "davygrvy"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "davygrvy"