[Pkg-privacy-commits] [libgsecuredelete] 45/168: Drop hard-coded Posix.WNOHANG value.

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 20:06:38 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 ea32b3a52c4782de160e612542c26796bd7b7d96
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Fri Dec 18 01:20:27 2009 +0100

    Drop hard-coded Posix.WNOHANG value.
    
    Bump valac requirement to 0.7.8 to drop the hard-coded value of
    Posix.WNOHANG.
---
 configure.ac                       | 2 +-
 gsecuredelete/async-operation.vala | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 2b15dd3..130fe9d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,7 +12,7 @@ AC_CONFIG_HEADERS([config.h])
 m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
 
 # Checks for programs.
-AM_PROG_VALAC
+AM_PROG_VALAC([0.7.8])
 AC_PROG_LIBTOOL
 
 
diff --git a/gsecuredelete/async-operation.vala b/gsecuredelete/async-operation.vala
index 8c1d6c5..6e82786 100644
--- a/gsecuredelete/async-operation.vala
+++ b/gsecuredelete/async-operation.vala
@@ -280,10 +280,8 @@ namespace Gsd
       Posix.pid_t wait_rv;
       string?     message  = null;
       
-      /* FIXME: 1 = WNOHANG, but WNOHANG doesn't seems to be accessible from
-       * Vala at the moment (0.7.7).
-       * See https://bugzilla.gnome.org/show_bug.cgi?id=597020 */
-      wait_rv = Posix.waitpid ((Posix.pid_t)this.pid, out exit_status, 1);
+      wait_rv = Posix.waitpid ((Posix.pid_t)this.pid, out exit_status,
+                               Posix.WNOHANG);
       if ((int)wait_rv < 0) {
         critical ("waitpid() failed: %s", strerror (errno));
         /* if we cannot watch the child, try to kill it */

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