Alberto Accomazzi writes:

> FYI, rsync has a good cleanup mechanism that kicks in when you send it
> a SIGHUP.  It removes/renames temporary files as appropriate, sends a
> signal to its child process, and exits.  I use this all the time to
> gracefully stop transfers (see the pseudo-code in my previous message).

I've been doing some mucking around with maximum connect time and
the like.  Rsync returns error code 20 when it has been
terminated by a SIGUSR1 or SIGHUP.  I use this to work out
whether the connect time limit has been reached or whether rsync
completed within that time.


Tim.

Reply via email to