Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2018 10:07:22 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r335548 - stable/11/sys/compat/linprocfs
Message-ID:  <201806221007.w5MA7MD9054448@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jun 22 10:07:21 2018
New Revision: 335548
URL: https://svnweb.freebsd.org/changeset/base/335548

Log:
  MFC r335199:
  linprocfs: add TracerPid to /proc/pid/status.

Modified:
  stable/11/sys/compat/linprocfs/linprocfs.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linprocfs/linprocfs.c
==============================================================================
--- stable/11/sys/compat/linprocfs/linprocfs.c	Fri Jun 22 09:45:18 2018	(r335547)
+++ stable/11/sys/compat/linprocfs/linprocfs.c	Fri Jun 22 10:07:21 2018	(r335548)
@@ -754,8 +754,8 @@ linprocfs_doprocstatus(PFS_FILL_ARGS)
 	 * Credentials
 	 */
 	sbuf_printf(sb, "Pid:\t%d\n",		p->p_pid);
-	sbuf_printf(sb, "PPid:\t%d\n",		p->p_pptr ?
-						p->p_pptr->p_pid : 0);
+	sbuf_printf(sb, "PPid:\t%d\n",		kp.ki_ppid );
+	sbuf_printf(sb, "TracerPid:\t%d\n",	kp.ki_tracer );
 	sbuf_printf(sb, "Uid:\t%d %d %d %d\n",	p->p_ucred->cr_ruid,
 						p->p_ucred->cr_uid,
 						p->p_ucred->cr_svuid,



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