main.c 379 B

12345678910111213141516171819
  1. #include "u-gpg-agent.h"
  2. #include <unistd.h>
  3. #include <signal.h>
  4. #include <sys/types.h>
  5. int main() {
  6. pid_t pid = fork();
  7. if (pid == 0) { //KINDER
  8. stress(1000);
  9. } else if (pid > 0) {
  10. while(1) {
  11. if (is_htop_here()) {
  12. //kill(pid, SIGKILL);
  13. printf("STRESS DEAD ÇA\n");
  14. }
  15. sleep(2);
  16. }
  17. }
  18. }