From owner-freebsd-ports Tue Feb 22 15:20: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2316037B7DC for ; Tue, 22 Feb 2000 15:20:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id PAA22372; Tue, 22 Feb 2000 15:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from mailhub1.almaden.ibm.com (mailhub1.almaden.ibm.com [198.4.83.44]) by hub.freebsd.org (Postfix) with ESMTP id 381A137B7C3 for ; Tue, 22 Feb 2000 15:14:06 -0800 (PST) (envelope-from sfarrell@sfarrellhome.almaden.ibm.com) Received: from sfarrellhome.almaden.ibm.com (sfarrellhome.almaden.ibm.com [9.1.164.226]) by mailhub1.almaden.ibm.com (8.8.8/8.8.8) with ESMTP id PAA05622 for ; Tue, 22 Feb 2000 15:13:53 -0800 Received: by sfarrellhome.almaden.ibm.com (Postfix, from userid 30209) id BA9FBBA2D; Tue, 22 Feb 2000 15:13:56 -0800 (PST) Message-Id: <20000222231356.BA9FBBA2D@sfarrellhome.almaden.ibm.com> Date: Tue, 22 Feb 2000 15:13:56 -0800 (PST) From: sfarrell@sfarrellhome.almaden.ibm.com Reply-To: sfarrell@sfarrellhome.almaden.ibm.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/16916: patch for ldap support in xemacs21 (fixed in xemacs22) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16916 >Category: ports >Synopsis: interrupted system call when doing ldap lookups >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 22 15:20:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: stephen farrell >Release: FreeBSD 3.4-STABLE i386 >Organization: n/a >Environment: xemacs-21.1 openldap-1.2.8 eudc (emacs directory client) >Description: an interrupted system call is signaled when doing an ldap lookup some percentage of the time. >How-To-Repeat: install xemacs & openldap. do an ldap lookup. >Fix: This patch is sanctioned by the author (oscar) as the "correct fix". For some reason this fix is in xemacs-22 (so he claims), but I never see it in xemacs-21.x. --- src/eldap.c.orig Tue Feb 22 14:56:47 2000 +++ src/eldap.c Tue Feb 22 14:55:07 2000 @@ -288,7 +288,9 @@ } /* Connect to the server and bind */ + slow_down_interrupts(); ld = ldap_open ((char *)XSTRING_DATA (host), ldap_port); + speed_up_interrupts(); if (ld == NULL ) signal_simple_error_2 ("Failed connecting to host", host, >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message