aboutsummaryrefslogtreecommitdiffstats
path: root/cleanup.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the new case_N.h file to make sure that our cleanup_step caseWayne Davison2006-10-151-14/+7
| | | | statements never get out of sequence when the code changes.
* Improved the _exit_cleanup() function to handle potential recursionsWayne Davison2006-10-141-51/+96
| | | | | | back to the function via the calls that it is making. The new code treats each recursion back into the function as an opportunity to take up where we left off (skipping whatever step just failed).
* The cleanup code that handles moving the temp file to the partialWayne Davison2006-10-141-2/+2
| | | | | file needed to check that cleanup_fname was not NULL to prevent any possibility of a recursion starting into that code again.
* - When exiting, set the flag "in_exit_cleanup".Wayne Davison2006-10-131-10/+6
| | | | | - Mark _exit_cleanup() with NORETURN. - Don't ever return from _exit_cleanup().
* - Improved the setting of cleanup_new_fname and cleanup_fname.Wayne Davison2006-05-181-4/+4
| | | | - Don't try to keep a partial file if cleanup_new_fname is not set.
* Revised the logic for when to call log_exit() to handle theWayne Davison2006-05-091-1/+4
| | | | new --log-file option.
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-20/+22
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Simplified the conditional prior to the SIGACTION code.Wayne Davison2006-02-031-1/+1
|
* Call SIGACTION() instead of signal().Wayne Davison2006-02-021-2/+6
|
* We should be using wait_process(), not waitpid() directly.Wayne Davison2006-02-011-1/+2
|
* Call finish_transfer() with its newly-added arg.Wayne Davison2006-01-301-2/+2
|
* Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison2006-01-131-2/+2
|
* If cleanup_set() gets passed a NULL fnametmp or fname, setWayne Davison2005-11-101-1/+1
| | | | cleanup_fname to NULL.
* Handle new IOERR_DEL_LIMIT bit in io_error.Wayne Davison2005-03-051-3/+5
|
* Adding more calls to safe_fname().Wayne Davison2005-02-071-2/+2
|
* Changed direct call to fstat() into a call to do_fstat().Wayne Davison2005-01-281-3/+2
|
* Call finish_transfer() with its new arg.Wayne Davison2005-01-101-1/+3
|
* Call flush_write_file() in _exit_cleanup() if we are keeping aWayne Davison2004-10-101-1/+3
| | | | partially-received file.
* Added the new --partial-dir option.Wayne Davison2004-07-291-1/+2
|
* - Got rid of cleanup_buf (map-file cleanup is not needed).Wayne Davison2004-07-201-12/+8
| | | | - Renamed the cleanup_fd* vars.
* Tweaked some formatting.Wayne Davison2004-07-021-12/+14
|
* Call finish_transfer() with its new arg. Also put the externsWayne Davison2004-05-131-12/+15
| | | | at the top and got rid of some trailing whitespace.
* Better pid handling.Wayne Davison2004-01-271-3/+3
|
* Call io_flush() with its new FULL_FLUSH option.Wayne Davison2004-01-151-1/+1
|
* Return new RERR_VANISHED code, as appropriate.Wayne Davison2003-12-151-2/+5
|
* The close_all() function was missing its "void" prototype.Wayne Davison2003-03-211-1/+1
|
* Prevent the "Connection reset by peer" messages often seen from Cygwin.David Dykstra2003-01-271-0/+27
| | | | | Result of a lot of discussion over the last year and a half. Based on a patch from Randy O'Meara, cleaned up a bit by Max Bowsher.
* Better fix for infinite recursion; don't return from exit_cleanupDavid Dykstra2003-01-261-2/+2
| | | | | | unless the nesting is already pretty deep, because there are normal cases where exit_cleanup is nested shallowly. Patch from Marc Espie, posted by Brian Poole.
* Prevent infinite recursion in exit_cleanup(). Patch from Sviatoslav Sviridov.David Dykstra2003-01-161-0/+7
|
* Doc _exit_cleanup.Martin Pool2002-04-091-1/+1
|
* Doc.Martin Pool2002-04-081-6/+24
|
* Improved network error handling. (Greg A. Woods)Martin Pool2002-03-271-0/+9
|
* improved error handling again. Now we report messages for the remoteAndrew Tridgell2001-03-231-8/+13
| | | | shell failing and propogate errors in a better fashion
* new error handling systemAndrew Tridgell2001-03-221-0/+7
| | | | | we now give a non-0 exit code if *any* of the files we have been asked to transfer fail to transfer
* Doc.Martin Pool2000-11-101-2/+7
|
* another hang-at-end fix. It looks like we are more sensiitive toAndrew Tridgell2000-01-301-0/+1
| | | | | | | 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
* set the exit code to RERR_FILEIO is io_error is set when we exit. ThisAndrew Tridgell1999-04-061-0/+3
| | | | | catches most sorts of io errors and ensures we report a error in our exit status.
* log filename(line) in exit_cleanup() to make tracking down problemsAndrew Tridgell1998-11-151-2/+2
| | | | easier in rsync daemons.
* put the pid on each line of the log file to facilitateAndrew Tridgell1998-10-291-0/+3
| | | | auto-parsing. Requested by Jarkko Hietaniemi (jhi@iki.fi)
* syslog support in rsync daemon has been broken since I added the "logAndrew Tridgell1998-10-281-2/+6
| | | | | file" option. I wonder why noone reported it? Or did everyone just use "log file" ?
* Add "use chroot" and "pid file" rsyncd.conf options. The former allows oneDavid Dykstra1998-10-261-0/+8
| | | | | | | to disable the use of chroot so rsync --daemon can be run as a non-root user (if a non-privileged --port is used). The latter allows one to specify a file in which to write the process id of the daemon, which is useful when rsync --daemon is not run from inetd.
* handle OSes where you can't rename a open file in the cleanup code.Andrew Tridgell1998-09-091-1/+10
|
* rsync.c was getting a bit unwieldy so I split the code into 3 modules,Andrew Tridgell1998-07-251-0/+63
for the 3 logical stages of rsync; generator, sender and receiver.