Added
Link Here
|
1 |
commit df6393ac0cd785727329a97f731a4067334c0ace |
2 |
Author: Avinash Sonawane <rootkea@gmail.com> |
3 |
Date: Mon Dec 20 13:33:42 2021 +0530 |
4 |
|
5 |
Pass correct parameter |
6 |
|
7 |
diff --git src/daemon/main.c b/src/daemon/main.c |
8 |
index cd940353..47a94586 100644 |
9 |
--- src/daemon/main.c |
10 |
+++ src/daemon/main.c |
11 |
@@ -226,8 +226,9 @@ handle_parent_connection (int s) |
12 |
0, NULL); |
13 |
break; |
14 |
case GLIBTOP_CMND_PROC_IO: |
15 |
+ memcpy (&pid, parameter, sizeof (pid_t)); |
16 |
glibtop_get_proc_io_l |
17 |
- (server, &resp->u.data.proc_io, parameter); |
18 |
+ (server, &resp->u.data.proc_io, pid); |
19 |
do_output (s, resp, _offset_data (proc_io), |
20 |
0, NULL); |
21 |
break; |