mirror of https://github.com/borgbase/vorta
More reliable/gentle cancel (#412)
* Kill Borg with SIGINT instead SIGTERM * Only send sigint to top-level process
This commit is contained in:
parent
426b849938
commit
361c5a1775
|
@ -234,7 +234,7 @@ class BorgThread(QtCore.QThread, BackupProfileMixin):
|
|||
def cancel(self):
|
||||
if self.isRunning():
|
||||
mutex.unlock()
|
||||
os.killpg(os.getpgid(self.process.pid), signal.SIGTERM)
|
||||
self.process.send_signal(signal.SIGINT)
|
||||
self.terminate()
|
||||
|
||||
def process_result(self, result):
|
||||
|
|
Loading…
Reference in New Issue