Displaying 8 results from an estimated 8 matches for "fd_pair".
2009 Mar 25
1
Pipe creation problem: From Java app using rsync + ssh on windows with cygwin
...treamGobbler - rsync: pipe: Operation not
permitted (1)
DEBUG: com.mddc.client.rsync.StreamGobbler - rsync error: error in IPC code
(code 14) at /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/pipe.c(57)
[sender=3.0.4]
*
The rsync code where the error happens is pipe.c(57) which is this.
if (fd_pair(to_child_pipe) < 0 || fd_pair(from_child_pipe) < 0) {
rsyserr(FERROR, errno, "pipe");
exit_cleanup(RERR_IPC);
}
So for some reason fd_pair(to_child_pipe) is < 0 or fd_pair(from_child_pipe)
< 0.
If anyone has any suggestions it would be great as I'm st...
2013 Jan 31
0
File descriptors in pipe.c
...urns -> to_child_pipe[2]={3,4} then these
two file descriptors 3 and 4 can be used one at each end for reading and
writing.
But in the rsync code, two pairs are created as to_child_pipe and
from_child_pipe
------------------------------------------------------------
---------------------
if (fd_pair(to_child_pipe) < 0 || fd_pair(from_child_pipe) < 0) {
rsyserr(FERROR, errno, "pipe");
exit_cleanup(RERR_IPC);
}
//to_pipe_child[]={3,4}
//from_pipe_child[]={5,6}
pid = do_fork();
printf("value of pid...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...modes;
+int local_socket = 0;
/**
* 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_ch...
2006 Nov 21
1
rsync v2.6.9: small patch fixing NORETURN failures
...up(int code, const char *file, int line);
+NORETURN void _exit_cleanup(int code, const char *file, int line) NORETURN2;
void cleanup_disable(void);
void cleanup_set(char *fnametmp, char *fname, struct file_struct *file,
int fd_r, int fd_w);
@@ -276,8 +276,8 @@
void set_blocking(int fd);
int fd_pair(int fd[2]);
void print_child_argv(char **cmd);
-NORETURN void out_of_memory(char *str);
-NORETURN void overflow_exit(char *str);
+NORETURN void out_of_memory(char *str) NORETURN2;
+NORETURN void overflow_exit(char *str) NORETURN2;
int set_modtime(char *fname, time_t modtime, mode_t mode);
int mk...
2011 Aug 06
3
[Bug 8356] New: cygwin socketpair "The parameter is incorrect"
...Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: roland at rschulz.eu
QAContact: rsync-qa at samba.org
The usage of socketpair in fd_pair on cygwin can cause the error "The parameter
is incorrect" when trying to use a different rsh. This has been reported before
at http://lists.samba.org/archive/rsync/2002-October/003820.html
Usage of pipe instead of socketpair fixes this. I suggest to use pipe instead
of socketpair by def...
2013 Oct 24
0
patch for combining detect-renamed and fileflags patches (fwd)
...+46,8 @@
* its contents, otherwise just checks for content. Returns DR_SUCCESS or
* DR_NOT_EMPTY. Note that fname must point to a MAXPATHLEN buffer! (The
* buffer is used for recursion, but returned unchanged.)
@@ -786,13 +786,13 @@
@@ -353,7 +354,7 @@ void set_blocking(int fd);
int fd_pair(int fd[2]);
void print_child_argv(const char *prefix, char **cmd);
- int set_modtime(const char *fname, time_t modtime, uint32 mod_nsec, mode_t mode);
+ int set_modtime(const char *fname, time_t modtime, uint32 mod_nsec, mode_t mode, uint32 fileflags);
-int make_path(char *fname, int flags);
+i...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch?
Thanks for the reminder.
I've just committed Jos's rsync+ patch onto the
"branch_mbp_rsyncplus_merge" branch. If it works OK and nobody
screams I will move it across onto the main tree tomorrow or
Wednesday.
I see the patch doesn't add documentation about the new options to the
man page, so we should fix that in the future.
2008 Mar 04
1
Several changes missing from [HEAD] fileflags.diff
...do_chmod(const char *path, mode_t mode, uint32 fileflags);
> +int do_chflags(const char *path, uint32 fileflags);
> int do_rename(const char *fname1, const char *fname2);
> void trim_trailing_slashes(char *name);
> int do_mkdir(char *fname, mode_t mode);
> @@ -326,7 +329,7 @@ int fd_pair(int fd[2]);
> void print_child_argv(const char *prefix, char **cmd);
> NORETURN void out_of_memory(const char *str);
> NORETURN void overflow_exit(const char *str);
> -int set_modtime(const char *fname, time_t modtime, mode_t mode);
> +int set_modtime(const char *fname, time_t mod...