summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/rc.subr7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/rc.subr b/etc/rc.subr
index c20cd43..d2fc642 100644
--- a/etc/rc.subr
+++ b/etc/rc.subr
@@ -54,8 +54,9 @@ SYSCTL_N="${SYSCTL} -n"
CMD_OSTYPE="${SYSCTL_N} kern.ostype"
OSTYPE=`${CMD_OSTYPE}`
ID="/usr/bin/id"
-JID=`ps -p $$ -o jid=`
IDCMD="if [ -x $ID ]; then $ID -un; fi"
+PS="/bin/ps -ww"
+JID=`$PS -p $$ -o jid=`
case ${OSTYPE} in
FreeBSD)
@@ -278,8 +279,8 @@ _find_processes()
$_procname|$_procnamebn|${_procnamebn}:|"(${_procnamebn})"|"[${_procnamebn}]")'
fi
- _proccheck='
- ps 2>/dev/null -o "pid,jid,command" '"$_psargs"' |
+ _proccheck="\
+ $PS 2>/dev/null -o pid,jid,command $_psargs"' |
while read _npid _jid '"$_fp_args"'; do
case "$_npid" in
PID)
OpenPOWER on IntegriCloud