terminateprocess-buffer

command
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Overview

This program simulates support for TOR_PT_EXIT_ON_STDIN_CLOSE for versions of tor without it. It sets TOR_PT_EXIT_ON_STDIN_CLOSE=1, then sits between tor and a transport plugin and keeps the plugin's stdin open. (Versions of tor that do not support TOR_PT_EXIT_ON_STDIN_CLOSE instead close the plugin's stdin immediately.)

This is mainly useful on Windows, where, before TOR_PT_EXIT_ON_STDIN_CLOSE, tor kills child processes with TerminateProcess, which doesn't give them a chance to clean up. When you put this program in between tor and the plugin, it is this program that is killed (and has its stdout closed) by TerminateProcess. The plugin can then obey TOR_PT_EXIT_ON_STDIN_CLOSE=1, notice that its stdin has closed, and exit gracefully.

TOR_PT_EXIT_ON_STDIN_CLOSE: https://bugs.torproject.org/15435

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL