[Reproducible-commits] [dpkg] 43/61: dselect: Move sigwinch baselist member variables into setupsigwinch()

Jérémy Bobbio lunar at moszumanska.debian.org
Mon Sep 21 09:57:40 UTC 2015


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

lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.

commit 9a75ba2a93f349bc74fd80068bc4abc5a44f728b
Author: Guillem Jover <guillem at debian.org>
Date:   Thu Sep 17 02:03:32 2015 +0200

    dselect: Move sigwinch baselist member variables into setupsigwinch()
---
 dselect/baselist.cc | 5 +++--
 dselect/dselect.h   | 2 --
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/dselect/baselist.cc b/dselect/baselist.cc
index 6c1aad9..ffde95e 100644
--- a/dselect/baselist.cc
+++ b/dselect/baselist.cc
@@ -95,8 +95,8 @@ baselist::sigwinch_mask(int how)
 void
 baselist::setupsigwinch()
 {
-  osigactp= new(struct sigaction);
-  oblockedp= new(sigset_t);
+  struct sigaction *osigactp = new(struct sigaction);
+  sigset_t *oblockedp = new(sigset_t);
   if (sigprocmask(0, nullptr, oblockedp))
     ohshite(_("failed to get old signal mask"));
   if (sigaction(SIGWINCH, nullptr, osigactp))
@@ -106,6 +106,7 @@ baselist::setupsigwinch()
 
   sigwinch_mask(SIG_BLOCK);
 
+  struct sigaction nsigact;
   memset(&nsigact,0,sizeof(nsigact));
   nsigact.sa_handler= sigwinchhandler;
   sigemptyset(&nsigact.sa_mask);
diff --git a/dselect/dselect.h b/dselect/dselect.h
index 9b95331..50cf8ee 100644
--- a/dselect/dselect.h
+++ b/dselect/dselect.h
@@ -98,8 +98,6 @@ protected:
   // so none of the auto-displaying update routines need to display.
 
   // SIGWINCH handling
-  struct sigaction *osigactp, nsigact;
-  sigset_t *oblockedp;
   void sigwinch_mask(int how);
   void setupsigwinch();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list