我正在使用Ubuntu 14.04,但我遇到了我似乎无法理解的行为:
yes
命令(在默认 shell 中:Bash)yes
jobs
。输出:[1]+ Stopped yes
kill -9 %1
停yes
。输出:[1]+ Stopped yes
jobs
。输出:[1]+ Stopped yes
这是在3.16.0-30-generic
并行虚拟机中运行的Ubuntu上。
为什么我的kill -9
命令没有终止yes命令?我认为SIGKILL不能被捕获或忽略?以及如何终止yes命令?