From c627fd9c673e5a1358a51ee56bdcd6f4437d04e2 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 17 Nov 2014 23:14:08 +0300 Subject: POSIX sigwait is the default on Dyson --- debian/patches/8.14/8.14.4/dyson-sigwait.patch | 16 ++++++++++++++++ debian/patches/8.14/8.14.4/series | 1 + 2 files changed, 17 insertions(+) create mode 100644 debian/patches/8.14/8.14.4/dyson-sigwait.patch diff --git a/debian/patches/8.14/8.14.4/dyson-sigwait.patch b/debian/patches/8.14/8.14.4/dyson-sigwait.patch new file mode 100644 index 0000000..6379a13 --- /dev/null +++ b/debian/patches/8.14/8.14.4/dyson-sigwait.patch @@ -0,0 +1,16 @@ +Index: sendmail-8.14.4/libmilter/signal.c +=================================================================== +--- sendmail-8.14.4.orig/libmilter/signal.c ++++ sendmail-8.14.4/libmilter/signal.c +@@ -104,11 +104,7 @@ mi_signal_thread(name) + for (;;) + { + sigerr = sig = 0; +-#if defined(SOLARIS) || defined(__svr5__) +- if ((sig = sigwait(&set)) < 0) +-#else /* defined(SOLARIS) || defined(__svr5__) */ + if ((sigerr = sigwait(&set, &sig)) != 0) +-#endif /* defined(SOLARIS) || defined(__svr5__) */ + { + /* some OS return -1 and set errno: copy it */ + if (sigerr <= 0) diff --git a/debian/patches/8.14/8.14.4/series b/debian/patches/8.14/8.14.4/series index 6de1aa7..8a7abdb 100644 --- a/debian/patches/8.14/8.14.4/series +++ b/debian/patches/8.14/8.14.4/series @@ -22,3 +22,4 @@ install_static_libs.patch shared_libmilter.patch libmilter-assert.patch close_on_exec.patch +dyson-sigwait.patch -- cgit v1.2.3