Martin Pool
9fb3f7a9ab
Doc rsync_panic_handler()
2002-04-08 07:46:34 +00:00
Martin Pool
734a94a20c
Clean up prototype.
...
Drop unused variables.
2002-04-08 07:42:54 +00:00
Martin Pool
4fdc39dde8
Allow panic_action to be configured through environment variable RSYNC_PANIC_ACTION.
2002-04-08 07:34:17 +00:00
Martin Pool
b35d0d8e9a
Split code out into separate files and remove some global variables to
...
reduce symbol dependencies between files and therefore make it easier
to write unit tests. The diff is large, but the actual code changes
are pretty small.
2002-04-08 04:10:20 +00:00
Martin Pool
25d34a5c80
Rearrange code slightly to avoid util.c depending on main.c.
2002-04-08 03:37:19 +00:00
Martin Pool
c053133207
If configured with --enable-maintainer-mode, then on receipt of a
...
fatal signal rsync will try to open an xterm running gdb, similarly to
Samba's "panic action" or GNOME's bug-buddy.
2002-03-27 05:10:44 +00:00
Martin Pool
9098bbf3b3
Improved network error handling. (Greg A. Woods)
2002-03-27 01:03:13 +00:00
Martin Pool
c1a04ecbfd
Doc.
2002-03-22 05:08:53 +00:00
Martin Pool
bceec82f35
Previous solution for --no-whole-file would probably break when
...
connecting to old servers that don't have --no-whole-file.
Instead, we handle no_whole_file and whole_file separately, without
the magic -1 value. We don't modify no_whole_file after
initialization.
2002-03-19 03:39:42 +00:00
Martin Pool
0f0ea7f779
Add UNUSED macro that expands to a parameter attribute annotation on
...
gcc, to quieten its worries about parameters that must always be
unused.
2002-02-23 00:17:50 +00:00
Martin Pool
0b4af330ce
Doc.
2002-02-23 00:12:11 +00:00
Martin Pool
b84ba8967a
rsync prefix on mkdir and pushdir error messages.
2002-02-19 01:07:24 +00:00
Martin Pool
34758d5c15
Ignore SIGPIPE and allow EPIPE to get through to the program so that
...
we don't get stuck in a recursive loop trying to report a broken pipe
across that same broken pipe. Debian bug #128632 (Colin Walters)
2002-02-18 20:06:57 +00:00
David Dykstra
088aac8597
Make batch mode actually work and add man page documentation. From Jos Backus.
2002-02-06 21:20:48 +00:00
David Dykstra
93689aa51a
Add --no-whole-file and --no-blocking-io options
2002-02-05 23:05:31 +00:00
Martin Pool
8694312695
Add dummy show_flist_stats().
2002-01-25 10:06:36 +00:00
Martin Pool
76f79ba748
Patch from Jos Backus -- Fix breakage from dev_t to DEV64_T in batch
...
mode.
Also, drop -f and -F for batch mode: these should be reserved for
options that are more commonly used.
It also appends a newline to the argvs file and skips adding the
source directory to the command line.
2002-01-23 05:51:06 +00:00
Martin Pool
5c15e29f2b
Better mallinfo() output in --stats
2002-01-11 07:26:39 +00:00
Martin Pool
e5a2b8544d
Look for mallinfo() and use it to display
...
heap usage information in --stats
2002-01-11 07:16:11 +00:00
Martin Pool
7169bb4aa9
Fix a bug introduced in 1.119, whereby strings like
...
"mirror.aarnet.edu.au::" were not properly digested.
It wasn't even my bug! :-)
2001-08-15 07:50:07 +00:00
Martin Pool
08a740ff43
Fix casts when some variables are printed out.
2001-08-15 06:41:24 +00:00
Martin Pool
b67381d0dc
Drop dead variables introduced in rsync+ patch.
2001-08-15 06:38:23 +00:00
Martin Pool
6902ed178b
Merge across rsync+ patch; add a little documentation to the manpage. More documentation would be better.
2001-08-14 02:04:47 +00:00
Martin Pool
e1bd49d6f3
Try to fix "infinite loop" warning on AIX and other compilers. (We
...
exit on a signal.)
2001-08-06 12:25:45 +00:00
Andrew Tridgell
029c171330
reap children in sigchld handler
2001-07-17 10:48:31 +00:00
Andrew Tridgell
6c65e14634
applied simple nohang patch from Wayne Davison
2001-06-26 01:20:42 +00:00
David Dykstra
a1a440c23e
Make --whole-file the default when source and target are on the local machine.
2001-05-29 14:37:54 +00:00
Andrew Tridgell
19b27a485e
improved error handling again. Now we report messages for the remote
...
shell failing and propogate errors in a better fashion
2001-03-23 01:26:04 +00:00
Andrew Tridgell
ff81e809f4
new error handling system
...
we now give a non-0 exit code if *any* of the files we have been asked
to transfer fail to transfer
2001-03-22 07:36:51 +00:00
Martin Pool
0882faa2b2
Doc.
2001-03-16 02:11:53 +00:00
Martin Pool
5013576705
Change from getopt to popt.
2001-02-23 00:45:07 +00:00
Martin Pool
305ab1331b
Doc.
2001-02-21 08:25:07 +00:00
Martin Pool
0ba481368c
Add some comments.
2000-11-02 11:37:34 +00:00
Andrew Tridgell
38bf526fc5
fix bug in handling of :
2000-10-31 10:59:50 +00:00
Andrew Tridgell
c32d024071
don't clobber argv[0], so ps shows the right thing
2000-10-19 00:47:48 +00:00
Martin Pool
796d484b44
Clearer "nothing to do" message.
2000-10-10 01:26:55 +00:00
Andrew Tridgell
27e3e9c906
detect list_only a bit earlier
2000-08-29 04:46:50 +00:00
Andrew Tridgell
ae682c3e11
got rid of some unused variables
2000-08-19 15:25:05 +00:00
Andrew Tridgell
a24c687094
sleep for a smaller time while waiting for a process to exit
2000-08-19 12:53:24 +00:00
Andrew Tridgell
82980a2384
fixed timing problem with cleanup and io_flush() by using non-blocking
...
waitpid()
2000-08-16 08:34:18 +00:00
Andrew Tridgell
adc19c987b
fix from T.J.Adye@rl.ac.uk for final goodbye message with new protocol
2000-07-29 04:58:24 +00:00
Andrew Tridgell
3d38277706
optimisations from Rich Salz <rsalz@caveosystems.com>
2000-07-29 04:52:05 +00:00
Andrew Tridgell
e384bfbdcb
if the remote shell is rsh then use blocking IO
2000-06-24 13:19:25 +00:00
Andrew Tridgell
4a7481889c
use 1 second sleeps in the sleep loop as some OSes (NT for example)
...
don't get interrupted during a sleep.
2000-04-09 02:32:57 +00:00
Andrew Tridgell
f0359dd00d
went back to non-blokcing IO
...
it looks like ssh is willing to accept a non-blocking fd when used as
a transport, this seems to avoid the Solaris socketpair bug
2000-03-30 14:15:00 +00:00
Andrew Tridgell
8b35435f7c
another hang-at-end fix. It looks like we are more sensiitive to
...
these with socketpairs. The receiver now sleeps until it gets a signal
to tell it to exit
also fixed test.sh to use the current version remotely
2000-01-30 00:50:19 +00:00
Andrew Tridgell
8ada751890
damn.
...
with the new error handling code it is possible for rsync to get stuck
on the final transaction, leaving it hung.
looks like 2.4.1 will be pretty soon
2000-01-29 23:49:36 +00:00
Andrew Tridgell
09b7f5dbb1
move the read only daemon test to after the protocol setup
2000-01-29 05:02:23 +00:00
Andrew Tridgell
6d7b6081ac
damn!
...
the last pre-release had a bug that didn't setup the multiplexing
correctly. This means that pre-release will get "unexpected tag -7"
whenm talking to the fixed code.
2000-01-29 04:50:01 +00:00
Andrew Tridgell
ff41a59f58
- switched on multiplexing for all connections, not just daemon
...
connections (this fixes the stderr/stdout problem). Upped
protocol version for backward compat
- use multiplexing on error fd
- upped minimal protocol version
- got rid of some ugly code in the write buffering
2000-01-28 15:29:59 +00:00