From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: [PATCH] service: Fix arguments passing in the 'restart' action. Date: Sat, 8 Jul 2017 18:00:34 +0800 Message-ID: <20170708100034.8010-1-iyzsong@member.fsf.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTmY1-0004as-1g for guix-devel@gnu.org; Sat, 08 Jul 2017 06:01:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTmXy-0005FX-1Q for guix-devel@gnu.org; Sat, 08 Jul 2017 06:01:09 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:44568 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTmXx-0005FA-QC for guix-devel@gnu.org; Sat, 08 Jul 2017 06:01:05 -0400 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: guix-devel@gnu.org * 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))) ((status) ;; Return the service itself. It is automatically converted to an sexp ;; via 'result->sexp' and sent to the client. -- 2.12.2