commit: 40f42ced21b1c0c99780b801d28fafd91a858f90 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Fri Jul 18 04:10:28 2014 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> 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;
