[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to log yourself out remotely of a session you forgot to log out of?



On Wednesday 23 March 2005 00:30, Robert Brockway wrote:

> The only thing I'd add here is to say it is best to use kill (defaults
> to
> SIGTERM) rather than kill -9 (SIGKILL).  New users in unix often take
> to using SIGKILL right away when they discover it always[1] works
> whereas a
> process may choose to ignore a SIGTERM.  Let me emphasise, use SIGTERM
> first and give the process a chance to exist and save data.  Only use
> SIGKILL when you have to.

That's how I always do it.  In this case SIGTERM was sufficient.  (KMail
seems to handle SIGTERM very well.)

> [1] Actually there are cases where a process will survive a SIGKILL.
> These are not common and are a seperate discussion.

The only ones I've seen involved NFS file access when the NFS server
stopped responding.



Reply to: