Skip to content

Commit

Permalink
backup.ssh-r-sync: fix rsync pid cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-fg committed Aug 8, 2018
1 parent 49d88a1 commit 8f2585a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backup/ssh-r-sync
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def main(args=None):
rsync = pl.Path(opts.rsync).expanduser().resolve() if opts.rsync else 'rsync'
rsync = subprocess.Popen([ rsync, '--daemon', '--no-detach',
f'--address={conf.rsync_bind}', f'--port={rsync_port}', f'--config={rsync_conf_path}' ])
ctx.callback(proc_close, rsync)
wait_for_socket((conf.rsync_bind, rsync_port), *conf.rsync_ready_wait)
ssh.send.write(b'start\n')
ack = ssh.recv.readline().rstrip(b'\n')
Expand Down

0 comments on commit 8f2585a

Please sign in to comment.