[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Tor 0.0.9pre6 NT Service patch



Hi.
I contribute the patch of Windows NT service for a Tor development project.

http://foxmask.ddo.jp/tor/tor-009pre5_nt_service.patch
http://foxmask.ddo.jp/tor/tor-009pre6_nt_service.patch
http://foxmask.ddo.jp/tor/tor-009pre6_main.c

This patch contains the following problems.

1. When performing Tor in service mode, you have to put a configuration file
 on the same directory as an execution module.

2. When operating Tor in service mode, don't arrange the execution file of
Tor
 on a directory path including a blank.

When you develop in service mode, it should be cautious of the following
point.

1. If a perfect file path is not given, a fopen() function goes wrong.

For example
Faile: fopen("torrc")
Success: fopen("c:\tor\torrc")

2. The parameter given to the nt_service_body() function differs
 from the thing given to a main() function.

I am not good at English. However, it wishes that this patch is helpful
 to a developer. :)
Thanx.

---
Osamu Fujino
http://foxmask.ddo.jp/tor/


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.788 / Virus Database: 533 - Release Date: 2004/11/01