We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90993c2 commit 051ef81Copy full SHA for 051ef81
src/cgutil.c
@@ -105,22 +105,6 @@ char *pid_cmdline(int pid)
105
return buf;
106
}
107
108
-char *pid_comm(int pid, char *buf, size_t len)
109
-{
110
- char *ptr = NULL;
111
- FILE *fp;
112
-
113
- fp = fopenf("r", "/proc/%d/comm", pid);
114
- if (!fp)
115
- return NULL;
116
117
- if (fgets(buf, len, fp))
118
- ptr = chomp(buf);
119
- fclose(fp);
120
121
- return ptr;
122
-}
123
124
char *pid_cgroup(int pid)
125
{
126
char *buf, *ptr = NULL;
src/cgutil.h
@@ -55,7 +55,6 @@ struct cg {
55
int cgroup_avail(void);
56
57
char *pid_cmdline (int pid);
58
-char *pid_comm (int pid, char *buf, size_t len);
59
char *pid_cgroup (int pid);
60
61
uint64_t cgroup_memory(char *group);
0 commit comments