"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

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core) 

procedure

[root@localhost ~]# yum install bind
Wait for the process at pid 5016 to terminate.

"It will never end ..."

[root@localhost ~]# ps|grep "5016"
   5016 pts/0    00:00:04 yum

"I'm not going. Will you kill me?"

[root@localhost ~]# kill 5016
[root@localhost ~]# echo $?
0
[root@localhost ~]# ps|grep "5016"
   5016 pts/0    00:00:04 yum

"If you don't die ..."

[root@localhost ~]# kill -s 9 5016
[1]+Forced termination yum install bind
[root@localhost ~]# ps|grep "5016"

(End)

epilogue

The return of kill was 0, but it was alive for some reason, so it was killed.

Recommended Posts

"Wait for the process to finish." And kill the process because it remains.
Wait for PostgreSQL to start with Docker and then start the WEB service
[No.007] Organization management screen and login process to the organization
To implement, write the test and then code the process
Bind the request to any class and receive it
Wait for the container service to start with docker healthcheck
[Code golf] Deflate the code and submit it to AtCoder [Compressed golf]
Shell to kill Java process
[Swift 5] Processing and precautions for transitioning to the iOS settings app
Add the pre-built jar library to Android and call it in the framework
Add the date to the GC statistics acquired by gcutil and output it.
Automatically assign date and build number for the day to Maven version
It feels good to prepare different classes for the same table values
Creating an app and deploying it for the first time on heroku
[Rails] Articles for beginners to organize and understand the flow of form_with
Is it possible to put the library (aar) in the Android library (aar) and use it?