search for: have_socketpair

Displaying 20 results from an estimated 33 matches for "have_socketpair".

2010 Feb 23
2
cygwin + rsync issue under Windows 7 x64
...The latest rsync (3.0.7-1) under an up-to-date cygwin on Windows 7 x64 gets into some kind of busy wait situation when transferring large files over ssh. rsync, ssh, and zip can all be consuming much cpu time. I downloaded and built rsync 3.0.7 locally, manually editing config.status to turn off HAVE_SOCKETPAIR. The resulting rsync works fine. So, what specific diagnosis and further information would you find most helpful? A few months ago, Corinna and I went through a whole round of trying to get socketpair to work better, and she developed a BLODA work-around. At her request, I have kept the particular...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...Create a child connected to us via its stdin/stdout. @@ -111,11 +112,15 @@ pid_t pid; int to_child_pipe[2]; int from_child_pipe[2]; + int child_socket[2]; /* The parent process is always the sender for a local rsync. */ assert(am_sender); if (fd_pair(to_child_pipe) < 0 || +#ifdef HAVE_SOCKETPAIR + fd_pair(child_socket) < 0 || +#endif fd_pair(from_child_pipe) < 0) { rsyserr(FERROR, errno, "pipe"); exit_cleanup(RERR_IPC); @@ -141,6 +146,9 @@ if (dup2(to_child_pipe[0], STDIN_FILENO) < 0 || close(to_child_pipe[1]) < 0 || +#ifdef HAVE_SOCKETPAIR +...
2005 Feb 13
1
macro feature tests in rsync code
The tests in rsync for features have been changed to testing the value of a macro definition instead of previously testing if the macro was defined. This testing is now inconsistent with the HAVE_SOCKETPAIR macro, where in some places it is tested to see if the macro is defined, and other places to if it has a non zero value. I would rather not globally disable the diagnostic about undefined macros, as it has shown in the past to help find programming problems. -John wb8tyw@qsl.net Personal Opini...
2005 Feb 26
10
[Bug 2328] cygwin rsync hangs when initiated remotely after transfering some files
...What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From wayned@samba.org 2005-02-25 17:02 ------- If you could try commenting out HAVE_SOCKETPAIR from config.h and re-compiling rsync, it would be nice to know if that makes rsync stop hanging. If you don't have the cygwin source, you should be able to use their setup.exe tool to grab it and build it using their patches (such as the one to open temp files in binary mode). -- Configure b...
2005 Feb 25
2
[Bug 2208] cygwin version of rsync sometimes hangs
https://bugzilla.samba.org/show_bug.cgi?id=2208 ------- Additional Comments From bigjianman@hotmail.com 2005-02-24 19:09 ------- Hi guys My rSync hangs too, it's a cywin-rsync.. It's a little different, there is no error message The following is all that is shown: receiving file list ... done zTransfer/html/thumbs/12592.jpg zTransfer/html/thumbs/12593.jpg
2002 Nov 05
2
2.5.6 release
On Tue, Nov 05, 2002 at 08:37:00AM -0800, Martin Pool wrote: > On 10 Oct 2002, "Green, Paul" <Paul.Green@stratus.com> wrote: > > No new CVS messages have appeared on the rsync-cvs archives since August > > 30th. This seems rather odd-- perhaps a daemon stopped working? If there > > has truly been no activity since that date, I apologize for > >
2015 Apr 08
0
[PATCH 04/10] Use AC_CONFIG_LIBOBJ_DIR and AC_REPLACE_FUNCS to adhere to autoconf standards
...uot;getaddrinfo" function and required types.])], [AC_MSG_RESULT([no]) - AC_LIBOBJ(lib/getaddrinfo)])]) + AC_LIBOBJ(getaddrinfo)])]) else - AC_LIBOBJ(lib/getaddrinfo) + AC_LIBOBJ(getaddrinfo) fi AC_CHECK_MEMBER([struct sockaddr.sa_len], @@ -750,7 +753,7 @@ if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then AC_DEFINE(HAVE_SOCKETPAIR, 1, [Define to 1 if you have the "socketpair" function]) fi -AC_CHECK_FUNCS(getpass, , [AC_LIBOBJ(lib/getpass)]) +AC_REPLACE_FUNCS([getpass]) if test x"$with_included_popt" != x"yes"; then AC_CHEC...
2011 Jun 03
1
unconitionally use socketpair?
...curity/openssh/cvs/openssh/monitor.c,v retrieving revision 1.147 diff -u -p -r1.147 monitor.c --- monitor.c 29 May 2011 11:39:38 -0000 1.147 +++ monitor.c 3 Jun 2011 01:05:31 -0000 @@ -1853,13 +1853,8 @@ mm_init_compression(struct mm_master *mm static void monitor_socketpair(int *pair) { -#ifdef HAVE_SOCKETPAIR if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) fatal("%s: socketpair", __func__); -#else - fatal("%s: UsePrivilegeSeparation=yes not supported", - __func__); -#endif FD_CLOSEONEXEC(pair[0]); FD_CLOSEONEXEC(pair[1]); } -- Darren Tucker (dtucker at zip.com.au...
2002 Feb 28
1
Solaris, socketpair and chroot
...in socket IO (code 10) at main.c(375) rsync: connection unexpectedly closed (69 bytes read so far) What seems to occur on the server is that socketpair(3) (not pipe(2)) is called, which needs to open /dev/ticotsord. Since I do not have a /dev in the chroot directory, this call fails. Disabling HAVE_SOCKETPAIR in config.h seems to resolve the problem. Is there any way this can be worked around more appropriately (perhaps by calling socketpair() before going chrooted)? Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG
2003 Jul 24
1
patch to use pipe if socketpair fails
...cv This patch makes rsync use pipe if socketpair fails. Yours, Harri J?rvi CC me if you reply to this thread since I'm not on the mailing list -------------- next part -------------- --- rsync-2.5.5/util.c Wed Mar 20 03:09:49 2002 +++ util.c Thu Jul 24 13:11:45 2003 @@ -71,6 +71,10 @@ #if HAVE_SOCKETPAIR ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fd); + if (ret != 0) { + perror("socketpair failed. trying pipe"); + ret = pipe(fd); + } #else ret = pipe(fd); #endif
2011 Jun 02
2
preauth privsep logging via monitor
...or); + continue; + } + if (pfd[0].revents) + break; /* Continues below */ + } buffer_init(&m); @@ -1851,17 +1940,30 @@ mm_init_compression(struct mm_master *mm } while (0) static void -monitor_socketpair(int *pair) +monitor_openfds(struct monitor *mon, int do_logfds) { #ifdef HAVE_SOCKETPAIR - if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) - fatal("%s: socketpair", __func__); + int pair[2]; + + if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1) + fatal("%s: socketpair: %s", __func__, strerror(errno)); + FD_CLOSEONEXEC(pair[0]); + FD_CLOSEONEXEC(pair[1])...
2015 Feb 06
2
Fwd: Waiting for Reply regarding "TestCases Failure"
...CHAR_P 1 #define HAVE_DECL_SYS_ERRLIST 1 #define HAVE_DECL__SYS_ERRLIST 1 #define HAVE_DECL_SYS_NERR 1 #define HAVE_DECL__SYS_NERR 1 #define SNPRINTF_ISO snprintf #define SNPRINTF snprintf #define HAVE_ZLIB_H 1 #define HAVE_UUID_UUID_H 1 #define HAVE_UUID_UNPARSE_LOWER 1 #define HAVE_FORK 1 #define HAVE_SOCKETPAIR 1 #define SOCKLEN_T socklen_t #define HAVE_FDATASYNC 1 #define HAVE_FSYNC 1 #define HAVE_PREAD 1 #define HAVE_PWRITE 1 #define HAVE_LINK 1 configure: exit 0 " -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/att...
2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
...AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <sys/types.h> #include <sys/socket.h> -main() { +int main() { int fd[2]; - exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1); + return (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1; }]])],[rsync_cv_HAVE_SOCKETPAIR=yes],[rsync_cv_HAVE_SOCKETPAIR=no],[rsync_cv_HAVE_SOCKETPAIR=cross])]) if test x"$rsync_cv_HAVE_SOCKETPAIR" = x"yes"; then AC_DEFINE(HAVE_SOCKETPAIR, 1, [Define to 1 if you have the "socketpair" function]) @@ -824,7 +831,7 @@ fi AC_CACHE_CHECK([for broken readdi...
2007 Sep 24
2
Where is the tdbsam password database file?
...VE_SETRESGID HAVE_SETRESGID_DECL HAVE_SETRESUID HAVE_SETRESUID_DECL HAVE_SETSID HAVE_SETXATTR HAVE_SHMGET HAVE_SHORT_KRB5_MK_ERROR_INTERFACE HAVE_SIGACTION HAVE_SIGBLOCK HAVE_SIGPROCMASK HAVE_SIGSET HAVE_SIG_ATOMIC_T_TYPE HAVE_SNPRINTF HAVE_SNPRINTF_DECL HAVE_SOCKETPAIR HAVE_SOCKLEN_T_TYPE HAVE_SRAND HAVE_SRANDOM HAVE_STAT64 HAVE_STAT_HIRES_TIMESTAMPS HAVE_STAT_ST_ATIM HAVE_STAT_ST_BLKSIZE HAVE_STAT_ST_BLOCKS HAVE_STAT_ST_CTIM HAVE_STAT_ST_MTIM HAVE_STRCASECMP HAVE_STRCASESTR HAVE_STRCHR HAVE_STRDUP HAVE_STRERROR HAV...
2017 Jun 08
0
2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
...HAVE_SETPGID HAVE_SETRESGID HAVE_SETRESGID_DECL HAVE_SETRESUID HAVE_SETRESUID_DECL HAVE_SETSID HAVE_SETXATTR HAVE_SHMGET HAVE_SHORT_KRB5_MK_ERROR_INTERFACE HAVE_SIGACTION HAVE_SIGBLOCK HAVE_SIGPROCMASK HAVE_SIGSET HAVE_SIG_ATOMIC_T_TYPE HAVE_SNPRINTF HAVE_SOCKETPAIR HAVE_SOCKLEN_T HAVE_SPLICE_DECL HAVE_SRAND HAVE_SRANDOM HAVE_SS_FAMILY HAVE_STAT64 HAVE_STATVFS_F_FLAG HAVE_STAT_HIRES_TIMESTAMPS HAVE_STAT_ST_BLKSIZE HAVE_STAT_ST_BLOCKS HAVE_STRCASECMP HAVE_STRCASESTR HAVE_STRCHR HAVE_STRDUP HAVE_STRERROR HAVE_STRFT...
2003 Feb 11
1
Problems configuring OpenSSH 3.5p1 on Sol 5.8
...H 1 #define HAVE_RECVMSG 1 #define HAVE_RRESVPORT_AF 1 #define HAVE_SENDMSG 1 #define HAVE_SETEGID 1 #define HAVE_SETEUID 1 #define HAVE_SETGROUPS 1 #define HAVE_SETREUID 1 #define HAVE_SETRLIMIT 1 #define HAVE_SETSID 1 #define HAVE_SETVBUF 1 #define HAVE_SIGACTION 1 #define HAVE_SNPRINTF 1 #define HAVE_SOCKETPAIR 1 #define HAVE_STRERROR 1 #define HAVE_STRLCAT 1 #define HAVE_STRLCPY 1 #define HAVE_SYSCONF 1 #define HAVE_TCGETPGRP 1 #define HAVE_TRUNCATE 1 #define HAVE_UTIMES 1 #define HAVE_VHANGUP 1 #define HAVE_VSNPRINTF 1 #define HAVE_WAITPID 1 #define HAVE_DIRNAME 1 #define HAVE_LIBGEN_H 1 #define HAVE_GE...
2007 Jun 05
1
Samba unable to connect to ldap
...VE_SETRESGID HAVE_SETRESGID_DECL HAVE_SETRESUID HAVE_SETRESUID_DECL HAVE_SETSID HAVE_SETXATTR HAVE_SHMGET HAVE_SHORT_KRB5_MK_ERROR_INTERFACE HAVE_SIGACTION HAVE_SIGBLOCK HAVE_SIGPROCMASK HAVE_SIGSET HAVE_SIG_ATOMIC_T_TYPE HAVE_SNPRINTF HAVE_SNPRINTF_DECL HAVE_SOCKETPAIR HAVE_SOCKLEN_T_TYPE HAVE_SRAND HAVE_SRANDOM HAVE_STAT64 HAVE_STAT_HIRES_TIMESTAMPS HAVE_STAT_ST_ATIM HAVE_STAT_ST_BLKSIZE HAVE_STAT_ST_BLOCKS HAVE_STAT_ST_CTIM HAVE_STAT_ST_MTIM HAVE_STRCASECMP HAVE_STRCASESTR HAVE_STRCHR HAVE_STRDUP HAVE_STRERROR HAV...
2015 Feb 03
2
Fwd: Waiting for Reply regarding "TestCases Failure"
---------- Forwarded message ---------- From: Saad Ahmed <ch.saad.ahmed at gmail.com> Date: 3 February 2015 at 21:10 Subject: Waiting for Reply regarding "TestCases Failure" To: Xapian Development <xapian-devel at lists.xapian.org> I have been waiting for reply regarding any further steps to take. Following are the outputs of commands that you asked me to run. All these
2005 Sep 19
1
ssh hangs or gives Segmentation fault
...#define HAVE_SETRESUID 1 #define HAVE_SETREUID 1 #define HAVE_SETRLIMIT 1 #define HAVE_SETSID 1 #define HAVE_SETUTENT 1 #define HAVE_SETUTXENT 1 #define HAVE_SETVBUF 1 #define HAVE_SHADOW_H 1 #define HAVE_SIGACTION 1 #define HAVE_SIGVEC 1 #define HAVE_SIG_ATOMIC_T 1 #define HAVE_SNPRINTF 1 #define HAVE_SOCKETPAIR 1 #define HAVE_SO_PEERCRED #define HAVE_STDDEF_H 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRDUP 1 #define HAVE_STRERROR 1 #define HAVE_STRFTIME 1 #define HAVE_STRINGS_H 1 #define HAVE_STRING_H 1 /* #undef HAVE_STRLCAT */ /* #undef HAVE_STRLCPY */ /* #undef HAVE_STRMODE */ /*...
2019 Oct 29
0
auth logging or auditing
...EMS ?? HAVE_SHARED_MMAP ?? HAVE_SHMGET ?? HAVE_SHM_OPEN ?? HAVE_SHOW_PANEL ?? HAVE_SIGACTION ?? HAVE_SIGBLOCK ?? HAVE_SIGGETMASK ?? HAVE_SIGLONGJMP ?? HAVE_SIGPROCMASK ?? HAVE_SIGSET ?? HAVE_SIGSETMASK ?? HAVE_SIG_ATOMIC_T_TYPE ?? HAVE_SIMPLE_C_PROG ?? HAVE_SIZE_T ?? HAVE_SNPRINTF ?? HAVE_SOCKET ?? HAVE_SOCKETPAIR ?? HAVE_SOCKLEN_T ?? HAVE_SPLICE_DECL ?? HAVE_SRAND ?? HAVE_SRANDOM ?? HAVE_SSIZE_T ?? HAVE_SS_FAMILY ?? HAVE_STATFS_F_FSID ?? HAVE_STATVFS ?? HAVE_STATVFS_F_FLAG ?? HAVE_STAT_HIRES_TIMESTAMPS ?? HAVE_STAT_ST_BLKSIZE ?? HAVE_STAT_ST_BLOCKS ?? HAVE_STAT_TV_NSEC ?? HAVE_STRCASECMP ?? HAVE_STRCASESTR...