]> git.ipfire.org Git - people/ms/dma.git/commitdiff
drop 31-sigalrm-backoff.patch: we use SIGHUP instead
authorSimon Schubert <2@0x2c.org>
Thu, 28 Oct 2010 21:44:51 +0000 (23:44 +0200)
committerSimon Schubert <2@0x2c.org>
Thu, 28 Oct 2010 21:44:51 +0000 (23:44 +0200)
debian/patches/31-sigalrm-backoff.patch [deleted file]

diff --git a/debian/patches/31-sigalrm-backoff.patch b/debian/patches/31-sigalrm-backoff.patch
deleted file mode 100644 (file)
index 1e47e91..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-Description: Allow a SIGALRM to force a delivery attempt.
-Origin: other: http://svn.ringlet.net/svn/ringlet/mail/dma/
-Forwarded: yes
-Author: Peter Pentchev <roam@ringlet.net>
-Last-Update: 2010-06-21
-
---- a/dma.c
-+++ b/dma.c
-@@ -267,6 +267,12 @@
- }
- static void
-+sig_alarm(int signo)
-+{
-+      (void)signo;    /* so that gcc doesn't complain */
-+}
-+
-+static void
- deliver(struct qitem *it)
- {
-       int error;
-@@ -301,7 +307,12 @@
-                                MAX_TIMEOUT);
-                       goto bounce;
-               }
-+              if (signal(SIGALRM, sig_alarm) == SIG_ERR)
-+                      syslog(LOG_WARNING,
-+                              "Could not set an alarm handler, the backoff "
-+                              "delay cannot be interrupted");
-               sleep(backoff);
-+              signal(SIGALRM, SIG_DFL);
-               backoff *= 2;
-               if (backoff > MAX_RETRY)
-                       backoff = MAX_RETRY;