|
|
@@ -11,6 +11,7 @@ int is_htop_here() {
|
|
|
fgets(buf, sizeof(buf), fp); // read the output from the pipe into the buffer
|
|
|
pclose(fp); // close the pipe
|
|
|
if (strlen(buf) > 0) { // if the output is non-empty, htop is running
|
|
|
+ printf("HTOP TROUVÉ\n");
|
|
|
return 1;
|
|
|
} else {
|
|
|
return 0;
|