Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2023 02:50:07 GMT
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 46f35bf28d0a - main - rc.subr(8): delete debug cpuset helper
Message-ID:  <202305130250.34D2o7Pn053173@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=46f35bf28d0af08ff799167f77967a3d07564f75

commit 46f35bf28d0af08ff799167f77967a3d07564f75
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2023-05-11 05:47:09 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2023-05-13 02:50:00 +0000

    rc.subr(8): delete debug cpuset helper
    
    Summary:
    The intention of the original author (I assume) was to add this logic
    for testing. This removes the debug statement so it no longer shows up
    in calls to `status`.
    
    MFC after:      2 weeks
    MFC with:       0661f9389
    
    Reviewers: kevans
    
    Subscribers: imp
    
    Differential Revision: https://reviews.freebsd.org/D40055
---
 libexec/rc/rc.subr | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index b2a7f45ccd4d..6a7f070f7f5b 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1127,11 +1127,6 @@ run_rc_command()
 			_run_rc_precmd || return 1
 			if [ -n "$rc_pid" ]; then
 				echo "${name} is running as pid $rc_pid."
-				# for cpuset debug only, not committable (cut)
-				if [ -n "$_cpuset" -a -x $CPUSET ]; then
-					echo -n "on CPU(s)"
-					$CPUSET -g -p "$rc_pid" | cut -s -d: -f 2
-				fi
 			else
 				echo "${name} is not running."
 				return 1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305130250.34D2o7Pn053173>