From unknown Sat Aug 16 10:47:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6255 <6255@debbugs.gnu.org> To: bug#6255 <6255@debbugs.gnu.org> Subject: Status: the notation of AF_LOCAL sockets in list-process Reply-To: bug#6255 <6255@debbugs.gnu.org> Date: Sat, 16 Aug 2025 17:47:37 +0000 retitle 6255 the notation of AF_LOCAL sockets in list-process reassign 6255 emacs submitter 6255 Masatake YAMATO severity 6255 normal tag 6255 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 24 02:45:54 2010 Received: (at submit) by debbugs.gnu.org; 24 May 2010 06:45:54 +0000 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 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 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 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 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 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 Date: Mon, 24 May 2010 15:45:36 +0900 (JST) Message-Id: <20100524.154536.959493690167583231.yamato@redhat.com> To: bug-gnu-emacs@gnu.org Subject: the notation of AF_LOCAL sockets in list-process From: Masatake YAMATO Organization: Red Hat Japan, Inc. Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) 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; From debbugs-submit-bounces@debbugs.gnu.org Mon May 24 16:47:35 2010 Received: (at 6255) by debbugs.gnu.org; 24 May 2010 20:47:35 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGeYh-0004h7-DI for submit@debbugs.gnu.org; Mon, 24 May 2010 16:47:35 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGeYf-0004h2-Aa for 6255@debbugs.gnu.org; Mon, 24 May 2010 16:47:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEACqC+ktFpZMM/2dsb2JhbACeAHK/WoUTBIw/ X-IronPort-AV: E=Sophos;i="4.53,293,1272859200"; d="scan'208";a="64949719" Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 24 May 2010 16:47:28 -0400 Received: by pastel.home (Postfix, from userid 20848) id 672118267; Mon, 24 May 2010 16:47:28 -0400 (EDT) From: Stefan Monnier To: Masatake YAMATO Subject: Re: bug#6255: the notation of AF_LOCAL sockets in list-process Message-ID: References: <20100524.154536.959493690167583231.yamato@redhat.com> Date: Mon, 24 May 2010 16:47:28 -0400 In-Reply-To: <20100524.154536.959493690167583231.yamato@redhat.com> (Masatake YAMATO's message of "Mon, 24 May 2010 15:45:36 +0900 (JST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 6255 Cc: 6255@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > 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 installed a slightly different patch that also outputs a message warning about the ignored argument. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 01 14:26:12 2010 Received: (at control) by debbugs.gnu.org; 1 Jun 2010 18:26:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJWAG-0001UN-4a for submit@debbugs.gnu.org; Tue, 01 Jun 2010 14:26:12 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJWAE-0001UH-2a for control@debbugs.gnu.org; Tue, 01 Jun 2010 14:26:10 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJWA8-0004y0-CD; Tue, 01 Jun 2010 14:26:04 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19461.20668.245832.158240@fencepost.gnu.org> Date: Tue, 1 Jun 2010 14:26:04 -0400 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: green X-Ran: }$(,Yp+}~)*xrBICGGv List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) close 6255 From unknown Sat Aug 16 10:47:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 30 Jun 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator