[Win32utils-devel] win32-job, JRuby, kill and process_list

Daniel Berger djberg96 at gmail.com
Thu Feb 6 16:11:55 UTC 2014


Hi all,

I'm getting one test failure with win32-job using JRuby 1.7.10 on Windows
7. It seems the kill method terminates the processes alright, but when I
check the process list again, it's returning one pid

  # job_test.rb
  require 'win32/job'
  include Win32

  pid1 = Process.spawn('notepad')
  pid2 = Process.spawn('notepad')

  j = Job.new('test')
  p j.process_list

  j.add_process(pid1)
  j.add_process(pid2)
  p j.process_list # [pid1, pid2]

  j.kill
  p j.process_list # Should be empty, but JRuby returns one pid.

  j.close

Any ideas?

Thanks,

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20140206/2232cc02/attachment.html>


More information about the win32utils-devel mailing list