[Pkg-privacy-commits] [libgsecuredelete] 06/25: Allow to cancel a paused operation
Intrigeri
intrigeri at moszumanska.debian.org
Wed Dec 7 17:10:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to branch master
in repository libgsecuredelete.
commit aa7e6921545000fbe9256df541d36607a81f0419
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Mon Jul 18 16:41:43 2016 +0200
Allow to cancel a paused operation
---
gsecuredelete/gsd-async-operation.vala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gsecuredelete/gsd-async-operation.vala b/gsecuredelete/gsd-async-operation.vala
index 4b5ca98..122fffd 100644
--- a/gsecuredelete/gsd-async-operation.vala
+++ b/gsecuredelete/gsd-async-operation.vala
@@ -362,7 +362,10 @@ namespace Gsd
*/
public bool cancel ()
{
- return signal_child (ProcessSignal.TERM);
+ /* we need to also send SIGCONT in order for the child to have a chance
+ * to actually quit if it was stopped. */
+ return (signal_child (ProcessSignal.TERM) &&
+ signal_child (ProcessSignal.CONT));
}
/**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libgsecuredelete.git
More information about the Pkg-privacy-commits
mailing list