1.5.3


Old Stuff

 www.your-freedom.net
 www.secure-tunnel.com

Ticket #94 (closed enhancement: wontfix)

Opened 3 years ago

Last modified 3 years ago

kill -9

Reported by: njm7176 Assigned to: andrei
Priority: normal Milestone: AlmostVPN 0.9.7
Component: FAQ Version: 0.9
Severity: minor Keywords: kill
Cc:

Description

I noticed in the almostvpn.log file that the stopSession action uses 'kill -9' to stop active SSH connections.

Instead, by using 'kill' or 'kill -15', the process is stopped in a "nice" way such that ssh is allowed to release resources and otherwise clean up after itself.

'kill -9' is a hard kill, and stops a process cold. Generally, it should be reserved for stubborn processes, not routine killing.

Change History

12/07/05 01:10:30 changed by anonymous

  • version set to 0.9.
  • milestone set to AlmostVPN 0.9.6.

12/07/05 07:10:18 changed by andrei

  • keywords set to kill.
  • status changed from new to closed.
  • resolution set to wontfix.

Thanks for suggestion, but in this particular case there is no reason for "nice" shutdown. AlmostVPN needs to make sure that this process (ssh) is dead and "kill -9" is exactly what "doctor orders". AlmostVPN uses "kill -9" to kill SSH client process. There is no any resources to "clean up" on client side and server side will clean all resources as soon as TCP connection gets broken.

I do understand that "proper" way will be to use "kill", then wait for some time and then use "kill -9" if process "refuse" to end, but ... to tell the truth I see no reason to go into all this troubles.

12/13/05 12:19:43 changed by andrei

  • milestone changed from AlmostVPN 0.9.6 to AlmostVPN 0.9.7.

I end up implementing "killNicely" (kill, wait and then kill -9 if needed) to be used at other place. I see no harm in using it for all killings. So from 0.9.7 this is going to be default way to kill things.