From c799a992a4081397fc7cb4da89eae16785de6030 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 5 Oct 2015 02:40:32 +0000 Subject: - remove s6-hiercopy (unused, moved to s6-portable-utils) - fix s6ps_otree when /proc isn't available - remove fucking -Bsymbolic --- src/minutils/s6ps_otree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/minutils/s6ps_otree.c') diff --git a/src/minutils/s6ps_otree.c b/src/minutils/s6ps_otree.c index 562a66d..b5f72b4 100644 --- a/src/minutils/s6ps_otree.c +++ b/src/minutils/s6ps_otree.c @@ -82,7 +82,7 @@ void s6ps_otree (pscan_t *p, unsigned int n, avltreen *pidtree, unsigned int *or } /* If we have init, make it the last in the orphan list */ - if (p[childlist[childindex[n-1]+1]].pid == 1) + if (n > 1 && p[childlist[childindex[n-1]+1]].pid == 1) { unsigned int pos1 = childlist[childindex[n-1] + 1] ; for (i = 2 ; i < nchild[n-1] ; i++) -- cgit v1.3.1