Home > front end >  CTRL C doesn't kill C script
CTRL C doesn't kill C script

Time:11-01

I'm reading enter image description here

But then problems come when I run the script twice in parallel with the command ./mem & ./mem, look at the GIF:

enter image description here

No matter how many times I try to kill the process the scripts keeps hammering.

How to kill my C which project?

CodePudding user response:

Use fg to bring the backgrounded process to the foreground, then it will respond to Ctrl-C.

You can also use jobs to see a numbered list of backgrounded jobs, and kill %<number> to kill a specific job, e.g. kill %1.

  • Related