From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] service: Fix arguments passing in the 'restart' action. Date: Mon, 10 Jul 2017 17:17:23 +0200 Message-ID: <87fue448zg.fsf@gnu.org> References: <20170708100034.8010-1-iyzsong@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 ([2001:4830:134:3::10]:50516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUaRG-0007F5-Mt for guix-devel@gnu.org; Mon, 10 Jul 2017 11:17:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUaRB-0007gt-OC for guix-devel@gnu.org; Mon, 10 Jul 2017 11:17:30 -0400 In-Reply-To: <20170708100034.8010-1-iyzsong@member.fsf.org> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Sat, 8 Jul 2017 18:00:34 +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 Hello, =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > * modules/shepherd/service.scm (action): Use 'apply' to invoke the 'start' > procedure in the 'restart' action. > --- > modules/shepherd/service.scm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/modules/shepherd/service.scm b/modules/shepherd/service.scm > index 26f29aa..72fbc3d 100644 > --- a/modules/shepherd/service.scm > +++ b/modules/shepherd/service.scm > @@ -398,7 +398,7 @@ wire." > (if running > (stop obj) > (local-output "~a was not running." (canonical-name obj))) > - (start obj args))) > + (apply start obj args))) Good catch! Applied, thanks. Ludo=E2=80=99.