Why no shutdown? (was: Re: SSH -R problem)

Corinna Vinschen cygwin-patches@cygwin.com
Thu May 2 08:33:00 GMT 2002

On Wed, May 01, 2002 at 10:34:47AM +0100, Max Bowsher wrote:
> On cygwin-patches@, Pierre A. Humblet wrote:
> > >So an ideal fix would detect "end of life" situations. Here is a brain
> > >storming idea: on a Cygwin close(), do a shutdown(.,2), free the Cygwin
> > Oops, absolutely no shutdown().
> >
> > Pierre
> Why no shutdown?

shutdown() disables the socket, not the socket handle.  The result
is that parent as well as child processes using dup'd sockets are
influenced by that.  close() OTOH just wants to disable only this
very socket handle of the calling process.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

More information about the Cygwin-patches mailing list