[Win32utils-devel] openprocess token failure with jruby
phasis at gmail.com
Mon Jan 13 02:16:59 UTC 2014
2014/1/13 Daniel Berger <djberg96 at gmail.com>:
> On Sun, Jan 12, 2014 at 6:20 PM, Heesob Park <phasis at gmail.com> wrote:
>> 2014/1/13 Daniel Berger <djberg96 at gmail.com>:
>> > Hi all,
>> > I'm running a 32-bit Jruby 1.7.10 on Windows 7. I noticed a problem with
>> > win32-security where this line is failing:
>> > unless OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY, token)
>> > raise SystemCallError.new("OpenProcessToken", FFI.errno)
>> > end
>> > Note that I do have one minor fix in the ffi branch that's not yet
>> > released.
>> > It works fine with Ruby, though. Any ideas?
>> Do you mean it works fine with the released ffi?
>> I have no idea because I cannot reproduce the issue.
> Yes, ffi (1.9.3 java).
> The error code I'm getting is 6 (invalid handle value).
> It works fine for you with JRuby?
I'm not sure why you asking.
As you mentioned, it works fine with jruby 1.7.6 and ffi-1.9.3-java.
More information about the win32utils-devel