perl winpid?

Reini Urban rurban@x-ray.at
Mon Feb 7 01:46:00 GMT 2005


Reini Urban schrieb:
> I feel quite stupid now, but found nothing simple.
> How to get the winpid from the current process in cygwin's perl?
> 
> $$ is the cygwin pid which is different from the windows pid 
> GetCurrentProcessId().
> Im just finishing perl-linwin32, and this is the last failing test, 
> assuming $$ == WINPID
> 
> Is GetCurrentProcessId() somewhere in Win32CORE or should I add it to 
> Win32::Process?
> 
> Win32::API is unfortunately not in libwin32, where it would be a simple
> $GetCurrentProcessId = new Win32::API( "kernel32.dll", 
> "GetCurrentProcessId", [], N )

In the meantime I added it as patch in
   http://rt.cpan.org/NoAuth/Bug.html?id=11399

This will be in perl-libwin32-0.191-2, but I'll wait a bit longer for 
response.
We should provide a more generic cygwin pid => winpid translator, but in 
which namespace?
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list