aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 9f96595..7919ed4 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -617,7 +617,7 @@ spawn_guts (const char * prog_arg, const char *const *argv,
else
system_printf ("duplicate to pid_handle failed, %E");
if (mode != _P_DETACH)
- set_console_state_for_spawn (real_path.iscygexec ());
+ set_console_state_for_spawn (!real_path.iscygexec ());
}
/* Some file types (currently only sockets) need extra effort in the parent