char *args = "echo hey";
pid_t pid = fork();
if(pid == 0) {
while(1) {
pid2 = fork();
wait(NULL);
}
}
If I have a program as such
$ gcc -Wall above.c
$ ./a.out
hey
hey
hey
hey
hey
hey
C^hey
hey
Ctrl+C isn't killing the program, how do I make Ctrl+C stop the child from running?