summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-30 20:51:59 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-26 21:52:22 -0700
commit85fc843bed98e099c4165972a5c37f62b0e47c47 (patch)
treeb8b26912dcfbc3982f6a874fa3dc0ec70ddf5554
parent0bb91139d75f693c56179ce8c05e4644a7b0fb02 (diff)
downloadcygnal-85fc843bed98e099c4165972a5c37f62b0e47c47.tar.gz
cygnal-85fc843bed98e099c4165972a5c37f62b0e47c47.tar.bz2
cygnal-85fc843bed98e099c4165972a5c37f62b0e47c47.zip
When spawning, don't try to make invisible window.
* winsup/cygwin/spawn.cc (child_info_spawn::worker): Do not call fhandler_console::need_invisible. It's not working properly. In an application which has no console because it was compiled -mwindows, calling this funcion causes a visible console window to appear. We don't need this in Cygnal; the Microsoft spawn functions don't pop up such windows.
-rw-r--r--winsup/cygwin/spawn.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index ca7ecf380..e17acd8ea 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -471,8 +471,6 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv,
if (mode == _P_DETACH)
c_flags |= DETACHED_PROCESS;
- else
- fhandler_console::need_invisible ();
if (mode != _P_OVERLAY)
myself->exec_sendsig = NULL;