Lets try this push again.. 2.5.1p2 bugs left.
Corinna Vinschen
vinschen at redhat.com
Fri Feb 23 05:04:55 EST 2001
On Thu, Feb 22, 2001 at 11:27:48AM +0100, Markus Friedl wrote:
> is this really CYWIN only?
I'm trying to be careful. If you ask me, I would care for calling
shutdown always when USE_PIPES isn't defined. The `kill' might be
Cygwin only problem. I don't know.
Corinna
>
> On Thu, Feb 22, 2001 at 10:01:03AM +0100, Corinna Vinschen wrote:
> > ===================================================================
> > RCS file: /cvs/openssh_cvs/sftp.c,v
> > retrieving revision 1.4
> > diff -u -p -r1.4 sftp.c
> > --- sftp.c 2001/02/09 13:40:04 1.4
> > +++ sftp.c 2001/02/18 16:59:27
> > @@ -246,11 +246,18 @@ main(int argc, char **argv)
> >
> > interactive_loop(in, out);
> >
> > +#if defined(HAVE_CYGWIN) && !defined(USE_PIPES)
> > + shutdown(in, SHUT_RDWR);
> > + shutdown(out, SHUT_RDWR);
> > +#endif
> > +
> > close(in);
> > close(out);
> >
> > +#if !defined(HAVE_CYGWIN)
> > if (kill(sshpid, SIGHUP) == -1)
> > fatal("Couldn't terminate ssh process: %s", strerror(errno));
> > +#endif
> >
> > if (waitpid(sshpid, NULL, 0) == -1)
> > fatal("Couldn't wait for ssh process: %s", strerror(errno));
> >
> >
> > Corinna
> >
> > --
> > Corinna Vinschen
> > Cygwin Developer
> > Red Hat, Inc.
> > mailto:vinschen at redhat.com
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com
More information about the openssh-unix-dev
mailing list