[tor-bugs] #15593 [Pluggable transport]: Bring sanity to the tor side of the PT shutdown process.

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Apr 5 19:47:38 UTC 2015


#15593: Bring sanity to the tor side of the PT shutdown process.
---------------------------------+------------------------------------
 Reporter:  yawning              |          Owner:  asn
     Type:  enhancement          |         Status:  new
 Priority:  normal               |      Milestone:  Tor: 0.2.7.x-final
Component:  Pluggable transport  |        Version:
 Keywords:  pt-wants             |  Actual Points:
Parent ID:                       |         Points:
---------------------------------+------------------------------------
 This is the final phase of my great PT shutdown process cleanup as a
 follow up to #15545.

 Now that there's a portable mechanism to signal termination to PTs (close
 the stdin), we should change the PT shutdown process to allow graceful
 termination to look like this:

  1. Close stdin (and on U*IX, send a SIGTERM, PT behavior here is
 equivalent).
  2. Wait for a grace period (~1 sec?)
  3. If the child still is not dead, send a SIGKILL/TerminateProcess().
 (Failsafe)

 This fixes #9330 in that, PTs that wish to trap a graceful shutdown on
 Windows have a way to do so, despite the final stage of the process
 killing the PT in the most violent way possible as a failsafe
 (realistically, PTs should exit shortly after step 1).

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15593>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list