Displaying 8 results from an estimated 8 matches for "rerr_ipc".
2013 Jan 31
0
File descriptors in pipe.c
...irs 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 is %d",pid);
if (pid == -1) {
rsyserr(FERROR, errno, "fork");
exit_cleanup(RERR_IPC);
}...
2003 Nov 17
0
[PATCH] --source-filter && --dest-filter for rsync 2.5.6
...+pid_t run_filter(char *command[], int out, int *pipe_to_filter)
+{
+ pid_t pid;
+ int pipefds[2];
+ extern int blocking_io;
+
+ if (verbose >= 2) {
+ print_child_argv(command);
+ }
+
+ if (pipe(pipefds) < 0) {
+ rprintf(FERROR, "pipe: %s\n", strerror(errno));
+ exit_cleanup(RERR_IPC);
+ }
+
+ pid = fork();
+ if (pid == -1) {
+ rprintf(FERROR, "fork: %s\n", strerror(errno));
+ exit_cleanup(RERR_IPC);
+ }
+
+ if (pid == 0) {
+ extern int orig_umask;
+ if (dup2(pipefds[0], STDIN_FILENO) < 0) {
+ rprintf(FERROR, "Failed dup2 to child stdin : %s\n",
+...
2009 Mar 25
1
Pipe creation problem: From Java app using rsync + ssh on windows with cygwin
...4) 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 stuck now.
Thanks,
Derek
-------------- next part --------------
HTML attachment scrubbed and removed
2009 Nov 04
0
PATCH: fast copy of files in local server mode
.../* 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
+ close(child_socket[1]) < 0 ||
+#endif
close(from_child_pipe[0]) < 0 ||
dup2(from_child_pipe[1], STDOUT_FILENO) < 0) {
rsyserr...
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
...2.5.6.orig/errcode.h rsync-2.5.6/errcode.h
*** rsync-2.5.6.orig/errcode.h 2002-04-08 23:29:26.000000000 -0600
--- rsync-2.5.6/errcode.h 2003-04-28 20:32:40.000000000 -0600
***************
*** 35,40 ****
--- 35,44 ----
#define RERR_MESSAGEIO 13 /* errors with program diagnostics */
#define RERR_IPC 14 /* error in IPC code */
+ #define RERR_PRESCRIPT 17 /* error running pre-transfer script */
+ #define RERR_POSTSCRIPT 18 /* error running post-transfer script */
+ #define RERR_SCRIPT 19 /* system error running transfer script */
+
#define RERR_SIGNAL 20...
2004 May 29
1
[patch] Filename conversion
....2/errcode.h 2003-12-15 10:04:14.000000000 +0200
+++ rsync-2.6.2-fnameconv.clean/errcode.h 2004-05-29 21:17:08.000000000 +0300
@@ -34,6 +34,7 @@
#define RERR_STREAMIO 12 /* error in rsync protocol data stream */
#define RERR_MESSAGEIO 13 /* errors with program diagnostics */
#define RERR_IPC 14 /* error in IPC code */
+#define RERR_FNAMECONV 15 /* error in filename conversion */
#define RERR_SIGNAL 20 /* status returned when sent SIGUSR1, SIGINT */
#define RERR_WAITCHILD 21 /* some error returned by waitpid() */
diff -rupNP rsync-2.6.2/flist.c rsync...
2006 Feb 13
1
rsync SIGSEGV signal handler in Cygwin.
...em to be specified anywhere,
* ssh and the shell seem to return these values:
*
diff -ur rsync-2.6.6/log.c rsync/log.c
--- rsync-2.6.6/log.c Fri Jun 10 02:27:22 2005
+++ rsync/log.c Sat Jan 28 04:37:10 2006
@@ -66,6 +66,7 @@
{ RERR_MESSAGEIO , "errors with program diagnostics" },
{ RERR_IPC , "error in IPC code" },
{ RERR_SIGNAL , "received SIGUSR1 or SIGINT" },
+ { RERR_CRASH , "*** WE HAVE CRASHED :-( ***" },
{ RERR_WAITCHILD , "some error returned by waitpid()" },
{ RERR_MALLOC , "error allocating core memory buff...
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.