The branch main has been updated by ngie:

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

commit 46f35bf28d0af08ff799167f77967a3d07564f75
Author:     Enji Cooper <n...@freebsd.org>
AuthorDate: 2023-05-11 05:47:09 +0000
Commit:     Enji Cooper <n...@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

Reply via email to