Re: [tor-dev] pid_t and MSVC

2011-10-11 Thread Nick Mathewson
On Tue, Oct 11, 2011 at 7:16 AM, Gisle Vanem wrote: > The use of 'pid_t' confuses me a bit: > >  In common/procmon.c (inside MS_WINDOWS), it's typedef'ed to  'int' > unconditionally. > >  And then in common/util.* (tor_terminate_process()) it is assumed to be >  defined in orconfig.h or somewhere

[tor-dev] pid_t and MSVC

2011-10-11 Thread Gisle Vanem
The use of 'pid_t' confuses me a bit: In common/procmon.c (inside MS_WINDOWS), it's typedef'ed to 'int' unconditionally. And then in common/util.* (tor_terminate_process()) it is assumed to be defined in orconfig.h or somewhere else. It's not AFAICS. It is true that _getpid() returns an