Wait for the process to finish. And kill the process because it remains.
prologue
When I did yum install, the process remained, so I just solved it
environment
[[email protected] ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)
procedure
[[email protected] ~]# yum install bind
Wait for the process at pid 5016 to terminate.
“It will never end …”
[[email protected] ~]# ps|grep "5016"
5016 pts/0 00:00:04 yum
“I’m not going. Will you kill me?”
[[email protected] ~]# kill 5016
[[email protected] ~]# echo $?
0
[[email protected] ~]# ps|grep "5016"
5016 pts/0 00:00:04 yum
“If you don’t die …”
[[email protected] ~]# kill -s 9 5016
[1]+Forced termination yum install bind
[[email protected] ~]# ps|grep "5016"
(End)
epilogue
The return of kill was 0, but it was alive for some reason, so it was killed.