Author: vetinari
Date: Mon Sep 3 09:28:34 2007
New Revision: 787
Modified:
trunk/qpsmtpd-prefork
Log:
prefork: support two or more parallel running instances (on different ports).
* no 4 or 5 digit long port numbers where the first four digits are the
same are supported (e.g. 20025, 20026, 2002), see IPC::Shareable.
Modified: trunk/qpsmtpd-prefork
==============================================================================
--- trunk/qpsmtpd-prefork (original)
+++ trunk/qpsmtpd-prefork Mon Sep 3 09:28:34 2007
@@ -191,7 +191,7 @@
}
# setup shared memory
- $chld_shmem = shmem("qpsmtpd", 1);
+ $chld_shmem = shmem($d_port."qpsmtpd", 1);
untie $chld_shmem;
# Interrupt handler
@@ -474,7 +474,7 @@
my ($chld_shmem, $chld_busy);
eval {
- $chld_shmem = &shmem("qpsmtpd", 0); #connect to shared memory hash
+ $chld_shmem = &shmem($d_port."qpsmtpd", 0); #connect to shared
memory hash
if (tied %{$chld_shmem}) {
# perform options