The process cannot be killed kill -9, it always changes the process ID

[ root@rp8 flash]# ps -ef|grep "sleep" root 17510 17314 0 11:52 pts/3 00:00:00 sleep 120 root 17512 17328 0 11:52 pts/2 00:00:00 grep --color=auto sleep [ root@rp8 flash]# kill -9 17510 [ root@rp8 flash]# ps -ef|grep "sleep" root 17514 17314 0 11:53 pts/3 00:00:00 sleep 120 root 17516 17328 0 11:53 pts/2 00:00:00 grep --color=auto sleep [ root@rp8 flash]# kill -9 17514 [ root@rp8 flash]# ps -ef|grep "sleep" root 17518 17314 0 11:53 pts/3 00:00:00 sleep 120 root 17520 17328 0 11:53 pts/2 00:00:00 grep --color=auto sleep 

what is wrong with this and how to deal with it?

+4
source share
2 answers

Look at the parent process; you may also have to kill it.

The ps output for each of the sleep processes has the same parent process identifier: 17314 . To stop the sleep process from respiration (again and again), you must kill 17314 , but first make sure you know what it is before stopping it.

+4
source

Probably because 17314 continues to propagate it. Cut the evil from the root! (err, find out that 17314 before kills him )

+2
source

Source: https://habr.com/ru/post/1445204/


All Articles