[3882] in arla-drinkers
For us who run more than one client at a time
daemon@ATHENA.MIT.EDU (Harald Barth)
Thu Apr 20 11:11:55 2006
From arla-drinkers-bounces@stacken.kth.se Thu Apr 20 15:11:55 2006
Return-Path: <arla-drinkers-bounces@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 26852 invoked from network); 20 Apr 2006 15:11:54 -0000
Received: from mx1.kth.se (130.237.32.140)
by charon.mit.edu with SMTP; 20 Apr 2006 15:11:54 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx1.kth.se (Postfix) with ESMTP id CAB5E140D86;
Thu, 20 Apr 2006 17:11:52 +0200 (CEST)
Received: from mx1.kth.se ([127.0.0.1])
by localhost (mx1.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 17471-01-60; Thu, 20 Apr 2006 17:11:50 +0200 (CEST)
Received: from tapas.stacken.kth.se (tapas.stacken.kth.se [130.237.234.140])
by mx1.kth.se (Postfix) with ESMTP id 87B6F140D50;
Thu, 20 Apr 2006 17:11:49 +0200 (CEST)
Received: from tapas.stacken.kth.se (localhost [127.0.0.1])
by tapas.stacken.kth.se (Postfix) with ESMTP id 4FB8B534FC;
Thu, 20 Apr 2006 17:11:49 +0200 (CEST)
X-Original-To: arla-drinkers@tapas.stacken.kth.se
Delivered-To: arla-drinkers@tapas.stacken.kth.se
Received: from brev.stacken.kth.se (brev.stacken.kth.se [130.237.234.84])
by tapas.stacken.kth.se (Postfix) with ESMTP id A2CEC534FC
for <arla-drinkers@tapas.stacken.kth.se>;
Thu, 20 Apr 2006 17:11:47 +0200 (CEST)
Received: from mx3.kth.se (mx3.kth.se [130.237.48.97])
by brev.stacken.kth.se (8.12.10/8.12.10) with ESMTP id k3KFBlla011409
for <arla-drinkers@stacken.kth.se>;
Thu, 20 Apr 2006 17:11:47 +0200 (MET DST)
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx3.kth.se (Postfix) with ESMTP id EB82C1408C7
for <arla-drinkers@stacken.kth.se>;
Thu, 20 Apr 2006 17:11:46 +0200 (CEST)
Received: from mx3.kth.se ([127.0.0.1])
by localhost (mx3.kth.se [127.0.0.1]) (amavisd-new,
port 10024) with LMTP
id 14316-01-56 for <arla-drinkers@stacken.kth.se>;
Thu, 20 Apr 2006 17:11:45 +0200 (CEST)
Received: from habarber.pdc.kth.se (unknown
[IPv6:2001:6b0:1:1dd0:203:47ff:fe8c:b968])
by mx3.kth.se (Postfix) with ESMTP id 0777014072E
for <arla-drinkers@stacken.kth.se>;
Thu, 20 Apr 2006 17:11:45 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
by habarber.pdc.kth.se (8.13.3/8.13.3) with ESMTP id k3KFBil5001174
for <arla-drinkers@stacken.kth.se>; Thu, 20 Apr 2006 17:11:44 +0200
Date: Thu, 20 Apr 2006 17:11:44 +0200 (MEST)
Message-Id: <20060420.171144.51157477.haba@habarber.pdc.kth.se>
To: arla-drinkers@stacken.kth.se
Subject: For us who run more than one client at a time
From: Harald Barth <haba@pdc.kth.se>
X-Mailer: Mew version 4.2 on Emacs 21.4 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
X-Virus-Scanned: by amavisd-new at kth.se
X-Spam-Status: No, hits=-4.9 tagged_above=-200.0 required=5.0 tests=BAYES_00
X-Spam-Level:
X-BeenThere: arla-drinkers@stacken.kth.se
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Arla discussions <arla-drinkers.stacken.kth.se>
List-Unsubscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=unsubscribe>
List-Archive: <http://lists.stacken.kth.se/pipermail/arla-drinkers>
List-Post: <mailto:arla-drinkers@stacken.kth.se>
List-Help: <mailto:arla-drinkers-request@stacken.kth.se?subject=help>
List-Subscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: arla-drinkers-bounces@stacken.kth.se
Errors-To: arla-drinkers-bounces@stacken.kth.se
X-Virus-Scanned: by amavisd-new at kth.se
This will (mis)use the ports above 7001 as callback port
if 7001 happens to be taken. Is this OK or do we need
to be more sophisticated?
Harald.
--- arlad/arla.c.orig 2006-04-20 17:00:55.000000000 +0200
+++ arlad/arla.c 2006-04-20 17:04:27.000000000 +0200
@@ -47,11 +47,14 @@
initrx (int port)
{
int error;
+ int i = 0;
if (port == 0)
port = afscallbackport;
- error = rx_Init (htons(port));
+ while ((error = rx_Init (htons(port + i)))
+ && i < 10)
+ i++;
if (error)
arla_err (1, ADEBERROR, error, "rx_init");
}
_______________________________________________
Arla-drinkers mailing list
Arla-drinkers@stacken.kth.se
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers