Timeline for When should I not kill -9 a process?
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 16, 2021 at 11:21 | comment | added | Hend | @kasperd can you point me to a good URL what would be the consequences for the system if processes are killed using -9 not term? you mention sockets will get terminated regardless and peers will receive RST, and FIN? is that correct? even if the process is killed? | |
| Nov 11, 2020 at 20:35 | comment | added | lmat - Reinstate Monica |
@Timmmm In this case, I'm using dd and it's hanging. I'm not prepared to boycott dd...
|
|
| Oct 4, 2020 at 13:45 | comment | added | wardw | @Timmmm I'd intrepret this differently: it's just about motivating people to vote with their feet. | |
| Jul 4, 2017 at 23:31 | comment | added | kasperd | @BjörnLindqvist What you are saying is not true. When the last file descriptor referencing a TCP socket is closed, the kernel will send a packet telling the other end that the connection has been closed. That happens regardless of whether the last file descriptor was closed using the close system call, by killing the process, or in some other way. | |
| Jun 8, 2016 at 1:50 | review | Suggested edits | |||
| Jun 8, 2016 at 3:31 | |||||
| May 31, 2016 at 22:41 | comment | added | ctrl-alt-delor | If a process is killed then the socket will send RST to the peer, where as if the process calls close or shutdown on the socket, then the socket sends FIN. There is no timeout needed. A timeout situation will only occur if the power is dropped or the network cable removed. | |
| S Jul 7, 2015 at 12:17 | history | suggested | Calimo | CC BY-SA 3.0 |
Repair broken link with archive.org
|
| Jul 7, 2015 at 12:03 | review | Suggested edits | |||
| S Jul 7, 2015 at 12:17 | |||||
| May 28, 2015 at 1:11 | comment | added | Nathan Kidd | That link is no longer valid; looks like it was taken over by shady content squatting on the old URL reputation. | |
| May 24, 2014 at 16:43 | history | edited | Kasra Rahjerdi | CC BY-SA 3.0 |
Don't use weird code syntax highlighting mid blockquote.
|
| Jan 29, 2014 at 3:24 | comment | added | Warren P | Or stupid to use if if the process in question is your company's production | |
| Jan 28, 2014 at 19:17 | comment | added | Timmmm | Ah yes the old "if it is in any way imperfect you are stupid to use it" argument. | |
| Jan 28, 2014 at 8:48 | comment | added | Gaslight Deceive Subvert | Yes it will. But suppose you are killing a server process with clients connected, then the clients won't notice that the server is gone before timeouts. | |
| Jan 28, 2014 at 5:10 | comment | added | Rag | Won't the operating system close any open file descriptors (including sockets) when the process terminates? | |
| Mar 9, 2011 at 12:29 | history | answered | Shawn J. Goff | CC BY-SA 2.5 |