[Pkg-privacy-commits] [libgsecuredelete] 31/168: Use signal name instead of signal value.

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 20:06:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository libgsecuredelete.

commit 147f5dd7d4cca47426e3418767b14860b83ab223
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Mon Oct 5 18:49:35 2009 +0200

    Use signal name instead of signal value.
    
    Use ProcessSignal.TERM instead of hard-code 15.
---
 gsecuredelete/async-operation.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gsecuredelete/async-operation.vala b/gsecuredelete/async-operation.vala
index f77d31a..1b0aa9f 100644
--- a/gsecuredelete/async-operation.vala
+++ b/gsecuredelete/async-operation.vala
@@ -207,7 +207,7 @@ namespace SecureDelete
       if ((int)wait_rv < 0) {
         critical ("waitpid() failed: %s", strerror (errno));
         /* if we cannot watch the child, try to kill it */
-        if (Posix.kill ((Posix.pid_t)this.pid, 15) < 0) {
+        if (Posix.kill ((Posix.pid_t)this.pid, ProcessSignal.TERM) < 0) {
           critical ("kill() failed: %s", strerror (errno));
         }
       } else if ((int)wait_rv == 0) {

-- 
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