Wups, test compiles before commiting :)
This commit is contained in:
parent
5b800030f1
commit
5188fd2592
@ -82,8 +82,9 @@ static bool pid_is_cmd(pid_t pid, const char *cmd)
|
|||||||
static bool pid_is_exec(pid_t pid, const char *const *argv)
|
static bool pid_is_exec(pid_t pid, const char *const *argv)
|
||||||
{
|
{
|
||||||
char cmdline[32];
|
char cmdline[32];
|
||||||
char buffer[PATH_MAX];
|
|
||||||
int fd;
|
int fd;
|
||||||
|
char buffer[PATH_MAX];
|
||||||
|
char *p;
|
||||||
ssize_t bytes;
|
ssize_t bytes;
|
||||||
|
|
||||||
snprintf(cmdline, sizeof(cmdline), "/proc/%u/cmdline", pid);
|
snprintf(cmdline, sizeof(cmdline), "/proc/%u/cmdline", pid);
|
||||||
|
Loading…
Reference in New Issue
Block a user