From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.bugs Subject: bug#6255: the notation of AF_LOCAL sockets in list-process Date: Mon, 24 May 2010 15:45:36 +0900 (JST) Organization: Red Hat Japan, Inc. Message-ID: <20100524.154536.959493690167583231.yamato@redhat.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274684280 1618 80.91.229.12 (24 May 2010 06:58:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 24 May 2010 06:58:00 +0000 (UTC) To: 6255@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 24 08:57:59 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OGRbp-0004ZR-EO for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 May 2010 08:57:57 +0200 Original-Received: from localhost ([127.0.0.1]:58060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGRbo-0002X4-Ms for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 May 2010 02:57:56 -0400 Original-Received: from [140.186.70.92] (port=48618 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGRbb-0002Wm-NI for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 02:57:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGRbJ-0007VT-Mt for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 02:57:43 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46382) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGRbH-0007Uy-Gg for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 02:57:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OGRQI-0006CQ-Sm; Mon, 24 May 2010 02:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Masatake YAMATO Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 May 2010 06:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6255 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127468355423822 (code B ref -1); Mon, 24 May 2010 06:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 May 2010 06:45:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGRQA-0006CB-DM for submit@debbugs.gnu.org; Mon, 24 May 2010 02:45:54 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGRQ7-0006C4-Ah for submit@debbugs.gnu.org; Mon, 24 May 2010 02:45:52 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:41233) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OGRQ4-0004yh-DD for submit@debbugs.gnu.org; Mon, 24 May 2010 02:45:48 -0400 Original-Received: from [140.186.70.92] (port=48539 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGRQ2-0007k2-WE for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 02:45:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGRQ1-0005c6-52 for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 02:45:46 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:17110) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGRQ0-0005bq-Rn for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 02:45:45 -0400 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4O6jhMX029547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 24 May 2010 02:45:43 -0400 Original-Received: from localhost (beach.nrt.redhat.com [10.64.200.71]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4O6jf5p027886 for ; Mon, 24 May 2010 02:45:41 -0400 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 24 May 2010 02:46:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37221 Archived-At: This is a bug report with a patch. Please include the patch if appreciated. When `local' is given as :family keyword arugment of `make-network-process', AF_LOCAL(also known as AF_UNIX) socket is created. This behavior is not changed even if :host keyword arugment is given. This is O.K. But `list-process' doesn't work as we expected. I'll explain the detail with example: (let ((port "/dev/log")) (make-network-process :name "syslog" :host "127.0.0.1" :noquery t :service port :family 'local :type 'datagram)) Although "127.0.0.1" is specified at :host but `local' is specified at :family, so `make-network-process' creates AF_LOCAL socket. But M-x list-process tells Proc Status Buffer Command ---- ------ ------ ------- syslog open (none) (network datagram connection to 127.0.0.1) This should be Proc Status Buffer Command ---- ------ ------ ------- syslog open (none) (network datagram connection to /dev/log) 2010-05-23 Masatake YAMATO * process.c (Fmake_network_process): Reset `host' property if family is AF_LOCAL. === modified file 'src/process.c' *** src/process.c 2010-05-04 04:00:10 +0000 --- src/process.c 2010-05-23 17:52:30 +0000 *************** *** 3352,3357 **** --- 3352,3359 ---- { /* Host is not used. */ host = Qnil; + contact = Fplist_put (contact, QChost, Qnil); + CHECK_STRING (service); bzero (&address_un, sizeof address_un); address_un.sun_family = AF_LOCAL;