On 16 Oct 2000, at 10:32, Dave Dykstra wrote:
>
> Those of you who are getting a stuck rsync 2.4.6: are you running ssh that
> has not been recompiled with "HAVE_SOCKETPAIR" and not "USE_PIPES"? Ssh
> 1.2.27 configure.in by default always defines "USE_PIPES" which overrides
> HAVE_SOCKETPAIR. Andrew Tridgell has said that this change is required
> after rsync 2.3.2, although I haven't verified the difference myself: I
> went ahead and made the change to ssh's configure.in (and ran autoconf to
> regenerate configure) without verifying whether or not it makes a
> difference, and I haven't seen any hangs on rsync 2.4.6.
Since openssh doesn't compile out of the box within cygwin I dug
up the source with changes for cygwin and this is what I found.
I can forget about running rsync 2.4.x, right?
/*
* Define this to use pipes instead of socketpairs for communicating with the
* client program. Socketpairs do not seem to work on all systems.
*/
/* #define USE_PIPES 1 */
#ifdef HAVE_CYGWIN
#define open binary_open
#define pipe binary_pipe
extern int binary_open();
extern int binary_pipe();
#endif
----------- < cygwin_util.c > -------------------------
/*
*
* cygwin_util.c
*
* Author: Corinna Vinschen <[EMAIL PROTECTED]>
*
* Copyright (c) 2000 Corinna Vinschen <[EMAIL PROTECTED]>, Duisburg, Germany
* All rights reserved
*
* Created: Sat Sep 02 12:17:00 2000 cv
*
* This file contains functions for forcing opened file descriptors to
* binary mode on Windows systems.
*/
#include "config.h"
#ifdef HAVE_CYGWIN
#include <fcntl.h>
#include <io.h>
int binary_open(const char *filename, int flags, mode_t mode)
{
return open(filename, flags | O_BINARY, mode);
}
int binary_pipe(int fd[2])
{
int ret = pipe(fd);
if (!ret) {
setmode (fd[0], O_BINARY);
setmode (fd[1], O_BINARY);
}
}
#endif
----------- < end of cygwin_util.c > -------------------------
=====================================================
Jan�ke R�nnblom
SKERIA Utveckling AB (Teknous)
Laboratorgr�nd 9
931 77 Skelleftea (Sweden)
-----------------------------------------------------
Phone : +46-910-585424
Mobile : 070-3970743
Fax : +46-910-585499
URL : http://www.skelleftea.se/skeria
-----------------------------------------------------