[Win32utils-devel] openprocess token failure with jruby

Daniel Berger djberg96 at gmail.com
Mon Jan 13 03:14:49 UTC 2014


On Sun, Jan 12, 2014 at 7:16 PM, Heesob Park <phasis at gmail.com> wrote:

> Hi,
>
> 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:
> >>
> >> Hi,
> >>
> >> 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.


I just meant to ask which version of JRuby you were running, that's all.
Sorry.

Thanks for the information. I may have an idea.

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20140112/07a5c2a3/attachment.html>


More information about the win32utils-devel mailing list