diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-23 08:30:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-11-23 08:30:10 (GMT) |
commit | 3c23d218351b613b0ed0fe1ae651f1f51e67884d (patch) | |
tree | 35190af2ab6a64b3e0843fa6756dd6e7cad2863f /win/tclWinPipe.c | |
parent | fac696b394e95b3b53db29f0f642b5230492ea79 (diff) | |
parent | 9215c2610ca2f4938aa0947bcbd1ecd19a8e5009 (diff) | |
download | tcl-3c23d218351b613b0ed0fe1ae651f1f51e67884d.zip tcl-3c23d218351b613b0ed0fe1ae651f1f51e67884d.tar.gz tcl-3c23d218351b613b0ed0fe1ae651f1f51e67884d.tar.bz2 |
Re-base "stop-ce" branch to core-8-branch. This is what will be proposed for 8.7 in TIP #487.
Diffstat (limited to 'win/tclWinPipe.c')
-rw-r--r-- | win/tclWinPipe.c | 45 |
1 files changed, 14 insertions, 31 deletions
diff --git a/win/tclWinPipe.c b/win/tclWinPipe.c index 5f1aa70..55e4d73 100644 --- a/win/tclWinPipe.c +++ b/win/tclWinPipe.c @@ -1095,40 +1095,23 @@ TclpCreateProcess( * detached processes. The GUI window will still pop up to the foreground. */ - if (TclWinGetPlatformId() == VER_PLATFORM_WIN32_NT) { - if (HasConsole()) { + if (HasConsole()) { createFlags = 0; - } else if (applType == APPL_DOS) { - /* - * Under NT, 16-bit DOS applications will not run unless they can - * be attached to a console. If we are running without a console, - * run the 16-bit program as an normal process inside of a hidden - * console application, and then run that hidden console as a - * detached process. - */ + } else if (applType == APPL_DOS) { + /* + * Under NT, 16-bit DOS applications will not run unless they can + * be attached to a console. If we are running without a console, + * run the 16-bit program as an normal process inside of a hidden + * console application, and then run that hidden console as a + * detached process. + */ - startInfo.wShowWindow = SW_HIDE; - startInfo.dwFlags |= STARTF_USESHOWWINDOW; - createFlags = CREATE_NEW_CONSOLE; - TclDStringAppendLiteral(&cmdLine, "cmd.exe /c"); - } else { - createFlags = DETACHED_PROCESS; - } + startInfo.wShowWindow = SW_HIDE; + startInfo.dwFlags |= STARTF_USESHOWWINDOW; + createFlags = CREATE_NEW_CONSOLE; + TclDStringAppendLiteral(&cmdLine, "cmd.exe /c"); } else { - if (HasConsole()) { - createFlags = 0; - } else { - createFlags = DETACHED_PROCESS; - } - - if (applType == APPL_DOS) { - Tcl_SetObjResult(interp, Tcl_NewStringObj( - "DOS application process not supported on this platform", - -1)); - Tcl_SetErrorCode(interp, "TCL", "OPERATION", "EXEC", "DOS_APP", - NULL); - goto end; - } + createFlags = DETACHED_PROCESS; } /* |