1
0
This commit is contained in:
Daniel Tartavel 2020-05-17 23:04:19 +02:00
parent 4e441a90d4
commit 32920d49cc

4
main.c
View File

@ -13,7 +13,7 @@
#define HOSTNAME "localhost"
#define EVENT_SIZE (sizeof(struct inotify_event))
int debug = 0;
int debug = 1;
struct connexion
{
@ -338,7 +338,7 @@ int getpids(int pid, int exploded[])
int x = 0;
sprintf( path, "/proc/%d/task/%d/children", pid, pid);
if (debug >= 1) printf("process path: %s", path);
if (debug >= 2) printf("process path: %s\n", path);
if ((fh = fopen( path, "r")) == NULL)
{
if (debug >= 1) perror(path);