summaryrefslogtreecommitdiffstats
path: root/usr.bin/killall
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-12-12 23:31:44 +0000
committerjhb <jhb@FreeBSD.org>2000-12-12 23:31:44 +0000
commita0ae816020302eeb897ebfc7cef21e9bf8826c24 (patch)
tree5432688c79dfeed9cf67f61f23b64d5f12e05a57 /usr.bin/killall
parent43e413488ae006321da5014d529f25dfec4f15ea (diff)
downloadFreeBSD-src-a0ae816020302eeb897ebfc7cef21e9bf8826c24.zip
FreeBSD-src-a0ae816020302eeb897ebfc7cef21e9bf8826c24.tar.gz
Catch up to the new kinfo_proc.
Diffstat (limited to 'usr.bin/killall')
-rw-r--r--usr.bin/killall/killall.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c
index f377896..b74d712 100644
--- a/usr.bin/killall/killall.c
+++ b/usr.bin/killall/killall.c
@@ -283,11 +283,11 @@ main(int ac, char **av)
printf("nprocs %d\n", nprocs);
for (i = 0; i < nprocs; i++) {
- thispid = procs[i].kp_proc.p_pid;
- strncpy(thiscmd, procs[i].kp_proc.p_comm, MAXCOMLEN);
+ thispid = procs[i].ki_pid;
+ strncpy(thiscmd, procs[i].ki_comm, MAXCOMLEN);
thiscmd[MAXCOMLEN] = '\0';
- thistdev = procs[i].kp_eproc.e_tdev;
- thisuid = procs[i].kp_eproc.e_pcred.p_ruid; /* real uid */
+ thistdev = procs[i].ki_tdev;
+ thisuid = procs[i].ki_ruid; /* real uid */
matched = 1;
if (user) {
OpenPOWER on IntegriCloud