SiD3WiNDR Gears  Hacker Emblem  

Archive for January 23rd, 2007

kill dash nine
Date: January 23rd, 2007 by SiD3WiNDR
Categories: Rants, Uncategorized

*rant* 

Most of the time when I see someone asking how to kill a process on *nix I see someone responding "kill -9 <pid>".

Alas, this is NOT the way you kill a process … the process gets killed alright, and a little too hard. So for everyone not understanding, here’s a small explanation. Everyone who knows, just skip to the next post 😛

Normally when you (or something) kill a process, it gets a SIGTERM. When a program receives SIGTERM, it knows it should shut down and saves all its open files (or prompts the user), closes its file handles, etc etc. When you use -9, you send a SIGKILL which causes the OS to clean up the process without further ado (e.g. when it doesn’t respond to SIGTERM anymore), and shut it down. This also kills the process indeed, but doesn’t always have the intended effect when looking at data loss… Remember it 😉

*end of rant* 

Comments Off on kill dash nine
Weblog Calendar
January 2007
M T W T F S S
« Dec   Feb »
1234567
891011121314
15161718192021
22232425262728
293031  
Sales

Browsing archives for the day Tuesday, January 23rd, 2007.

Pages
Archives
Categories
Links
Meta
© 2002-2024, SiD3WiNDR - Proudly powered by WordPress - XHTML Compliant - RSS (Entries) - RSS (Comments)