Walton Hoops wrote: > On 8/16/2010 10:11 PM, Lg Lg wrote: >> >> >> PS: >> > Processes such as gnome-terminal are free to ignore sigterm, and many > do. If you want to force the process to die, you want sigkill (the > equivalent of kill -9). Good manners says you should first try sigterm > to give a process a chance to exit gracefully before sending sigkill. I tired both: Process.kill :SIGKILL, @terminal_pid.pid if !@terminal_pid.nil? and `kill -9 #{@terminal_pid.pid}` but the terminal window won't close. I know that if I do something like pkill -9 'gnome-terminal' it will work, but the thing is that I am interested in killing only that last window that 'gnome-terminal' created. -- Posted via http://www.ruby-forum.com/.