From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: bug#34407: [PATCH] shepherd: Delete the socket file upon exit. Date: Mon, 08 Apr 2019 10:58:57 +0200 Message-ID: <87d0lw27qm.fsf@gnu.org> References: <87k1i868hk.fsf@disroot.org> <87ef87w0d3.fsf@member.fsf.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDQ7M-0005M4-Cx for guix-devel@gnu.org; Mon, 08 Apr 2019 04:59:05 -0400 In-Reply-To: <87ef87w0d3.fsf@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIn?= =?utf-8?B?cw==?= message of "Sun, 17 Feb 2019 11:38:16 +0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix-devel@gnu.org, 34407-done@debbugs.gnu.org Hello, iyzsong@member.fsf.org (=E5=AE=8B=E6=96=87=E6=AD=A6) skribis: > Yes, I have the 'rm /run/user/1000/shepherd/socket' workaround in my sess= ion > script too... I never had to do that because /run is wiped at boot time, like Danny wrote. > According to 'man 2 bind', the socket pathname should be deleted when no > longer required, so a patch to fix this bug: > > From f171f6adb2fc6ee3bf4d25378c2e7bba109b43d8 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?=3DE5=3DAE=3D8B=3DE6=3D96=3D87=3DE6=3DAD=3DA6?=3D > Date: Sun, 17 Feb 2019 11:27:28 +0800 > Subject: [PATCH] shepherd: Delete the socket file upon exit. > > Fixes . > > * modules/shepherd.scm (call-with-server-socket): New procedure. > (main): Use it instead of 'open-server-socket'. Pushed, thanks! Ludo=E2=80=99.