2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

「プロセスが終了するのを待ちます。」でプロセスが残ったのでkillする

Last updated at Posted at 2020-09-22

#プロローグ
yum install してたら、プロセスが残ってしまったので解消するだけ

#環境

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

#手順

[root@localhost ~]# yum install bind
pid 5016 のプロセスが終了するのを待ちます。

「いつまでたっても終わらんぞ...」

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

「進んでない。殺すか。」

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

「死なないだと...」

[root@localhost ~]# kill -s 9 5016
[1]+  強制終了            yum install bind
[root@localhost ~]# ps|grep "5016"

(完)

#エピローグ
killの戻りは0でしたが、なぜか生きていたので、強制終了しました。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?