From owner-freebsd-bugs Thu May 25 23:50: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6099B37B82A for ; Thu, 25 May 2000 23:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA88296; Thu, 25 May 2000 23:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id E228F37B662; Thu, 25 May 2000 23:40:07 -0700 (PDT) Message-Id: <20000526064007.E228F37B662@hub.freebsd.org> Date: Thu, 25 May 2000 23:40:07 -0700 (PDT) From: hook@aktrad.ru To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/18824: gethostbyname is not thread safe Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18824 >Category: misc >Synopsis: gethostbyname is not thread safe >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 25 23:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Gene Sokolov >Release: 2.2.8-4.0 >Organization: >Environment: >Description: The gethostbyname() is not thread safe. It causes lock ups if compiled with threads. It would be helpful if this is mentioned in the docs or if a thread-safe version is provided (gethostbyname_r ?) >How-To-Repeat: man gethostbyname try to find any mention of threads on the page. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message