Closed ThomasWaldmann closed 1 month ago
Looks like it is the background thread which empties the stderr pipe.
I think setting daemon=True on the thread creation should fix it.
I can send a PR for this tomorrow if you want?
@ncw that would be great, thanks!
I've created a pr in https://github.com/borgbackup/borgstore/pull/55
I think this should work but I haven't tested it!
I note that this probably means that borgstore
is exiting with the backend repository open. This might leak the rclone rcd
process in that case (not sure!).
Oh, interesting, I'll check whether borg leaves the repo open. There is a context manager for the repository, but maybe something isn't quite working as expected yet.
I noticed that borgbackup hung when it usually would terminate.
E.g. if it fails to acquire a lock on the repository (because there is already an exclusive lock by some other borg):
Usually borg would terminate here due to the exception, but it doesn't - it just sits there until the users presses Ctrl-C:
And then it terminates.
@ncw is that due to the
rclone
background process?