aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/0008_nxcomp_sa-restorer.full+lite.patch
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2017-12-15 12:55:17 +0100
committerMihai Moldovan <ionic@ionic.de>2017-12-15 12:55:17 +0100
commit1dad092caf01d733990648e6df64cbf964df5143 (patch)
tree39de0e643e76754a3e23ca9dd0350b8ba4f76250 /debian/patches/0008_nxcomp_sa-restorer.full+lite.patch
parent6d70b9e3c47f27a166f4aacb522c5c1e49092dd9 (diff)
parent2b9025f797ee322e21077e100c2ee27c2e7fa0e0 (diff)
downloadnx-libs-1dad092caf01d733990648e6df64cbf964df5143.tar.gz
nx-libs-1dad092caf01d733990648e6df64cbf964df5143.tar.bz2
nx-libs-1dad092caf01d733990648e6df64cbf964df5143.zip
Merge branch '3.6.x'
Diffstat (limited to 'debian/patches/0008_nxcomp_sa-restorer.full+lite.patch')
-rw-r--r--debian/patches/0008_nxcomp_sa-restorer.full+lite.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/debian/patches/0008_nxcomp_sa-restorer.full+lite.patch b/debian/patches/0008_nxcomp_sa-restorer.full+lite.patch
deleted file mode 100644
index 78fedc720..000000000
--- a/debian/patches/0008_nxcomp_sa-restorer.full+lite.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-Description: sa_restorer vs. memset
- Use memset instead of setting sa_restorer to NULL.
-Forwarded: pending
-Author: Alexander Morozov
-Last-Update: 2012-02-07
---- a/nxcomp/Loop.cpp
-+++ b/nxcomp/Loop.cpp
-@@ -5884,20 +5884,9 @@ void InstallSignal(int signal, int actio
-
- struct sigaction newAction;
-
-- newAction.sa_handler = HandleSignal;
--
-- //
-- // This field doesn't exist on most OSes except
-- // Linux. We keep setting the field to NULL to
-- // avoid side-effects in the case the field is
-- // a value return.
-- //
-+ memset(&newAction, 0, sizeof(newAction));
-
-- #if defined(__linux__)
--
-- newAction.sa_restorer = NULL;
--
-- #endif
-+ newAction.sa_handler = HandleSignal;
-
- sigemptyset(&(newAction.sa_mask));
-
-@@ -6509,13 +6498,9 @@ void SetTimer(int value)
-
- struct sigaction action;
-
-- action.sa_handler = HandleTimer;
--
-- #if defined(__linux__)
-+ memset(&action, 0, sizeof(action));
-
-- action.sa_restorer = NULL;
--
-- #endif
-+ action.sa_handler = HandleTimer;
-
- sigemptyset(&action.sa_mask);
-