From 960d12822d236debb4764ef743fb241427744bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Sun, 2 Mar 2008 18:07:22 +0000 Subject: [PATCH] Really set wchan. svn path=/trunk/; revision=2718 --- sysdeps/linux/prockernel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/linux/prockernel.c b/sysdeps/linux/prockernel.c index 258fa7e8..f05e1bdf 100644 --- a/sysdeps/linux/prockernel.c +++ b/sysdeps/linux/prockernel.c @@ -72,5 +72,7 @@ glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid) buf->nwchan = strtoull (p, &p, 0); + proc_file_to_buffer(buf->wchan, sizeof buf->wchan, "/proc/%d/wchan", pid), + buf->flags = _glibtop_sysdeps_proc_kernel; }