Posts by tmp • 11 points
1 post
-
1
votes1
answer71
viewsQ: What is the most efficient way to kill an external process from a program written in C?
My version: //test.c (04/07/2019) #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> #include <sys/types.h> void stop_attack(pid_t child){…