added \n
This commit is contained in:
parent
4e441a90d4
commit
32920d49cc
4
main.c
4
main.c
@ -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);
|
||||
|
Reference in New Issue
Block a user