The attached patch fixes the "no output from commands invoked through ssh"
for me.  The ChangeLog is below.
        Igor
==============================================================================
2006-01-05  Igor Peshansky  <[EMAIL PROTECTED]>

        * spawn.cc (spawn_guts): Invert the argument to
        set_console_state_for_spawn.

-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_            [EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'           old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
Index: winsup/cygwin/spawn.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/spawn.cc,v
retrieving revision 1.204
diff -u -p -r1.204 spawn.cc
--- winsup/cygwin/spawn.cc      4 Jan 2006 03:43:55 -0000       1.204
+++ winsup/cygwin/spawn.cc      5 Jan 2006 14:43:37 -0000
@@ -617,7 +617,7 @@ spawn_guts (const char * prog_arg, const
       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

Reply via email to