From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D438B1392EF for ; Fri, 18 Jul 2014 04:47:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E49DE0AB1; Fri, 18 Jul 2014 04:47:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D3E5CE0AB1 for ; Fri, 18 Jul 2014 04:47:06 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E17D3401BB for ; Fri, 18 Jul 2014 04:47:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id B66CA193E5 for ; Fri, 18 Jul 2014 04:47:04 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1405656628.40f42ced21b1c0c99780b801d28fafd91a858f90.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-status.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 40f42ced21b1c0c99780b801d28fafd91a858f90 X-VCS-Branch: master Date: Fri, 18 Jul 2014 04:47:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 21403fa8-4540-4d9f-b485-c70c048579f2 X-Archives-Hash: a6c55262ef0a61897dddf44eb65f3584 commit: 40f42ced21b1c0c99780b801d28fafd91a858f90 Author: William Hubbs gmail com> AuthorDate: Fri Jul 18 04:10:28 2014 +0000 Commit: William Hubbs gentoo org> CommitDate: Fri Jul 18 04:10:28 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=40f42ced rc-status: fix infinite loop when using stacked runlevels Remove the recursive call in print_stacked_services which was causing an infinite loop when using stacked runlevels. I would like to thank Doug Freed and Jason Zaman for assisting with tracking this down. X-Gentoo-Bug: 514972 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=514972 --- src/rc/rc-status.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index e38ce11..62591da 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -185,7 +185,6 @@ print_stacked_services(const char *runlevel) servicelist = rc_services_in_runlevel(stackedlevel->value); print_services(stackedlevel->value, servicelist); rc_stringlist_free(servicelist); - print_stacked_services(stackedlevel->value); } rc_stringlist_free(stackedlevels); stackedlevels = NULL;