From noreply at rubyforge.org Wed Feb 28 09:59:27 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Feb 2007 09:59:27 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-8942 ] several typo in windows-pr. Message-ID: <20070228145928.37CA1524225D@rubyforge.org> Bugs item #8942, was opened at 2007-02-28 23:59 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85 Category: windows-pr Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Katsuyuki MIYAMUKO (miyamuko) Assigned to: Nobody (None) Summary: several typo in windows-pr. Initial Comment: I found typo in windows-pr. Attached is a patch against windows-pr HEAD. I checked all windows-pr sources using following script. Thanks, -- class String def normalize self.downcase.gsub(/_/, "") end end ARGV.each do |file| defs = nil File.read(file).each_with_index do |line, i| case line when /(\w+)\s*=\s*Win32API.new\([^,]+?,\s*.(\w+)/ a, b = $1, $2 p ["Win32API", file, i + 1, a, b] if a.normalize != b.normalize when /(\w+).call\(/ next unless defs a = $1 p ["def/call", file, i + 1, defs, a] if a.normalize != defs.normalize when /def\s+(\w+)/ defs = $1 end end end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85 From noreply at rubyforge.org Wed Feb 28 10:01:43 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Feb 2007 10:01:43 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-8942 ] several typo in windows-pr. Message-ID: <20070228150143.C53BF524226E@rubyforge.org> Bugs item #8942, was opened at 2007-02-28 23:59 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85 Category: windows-pr Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Katsuyuki MIYAMUKO (miyamuko) Assigned to: Nobody (None) Summary: several typo in windows-pr. Initial Comment: I found typo in windows-pr. Attached is a patch against windows-pr HEAD. I checked all windows-pr sources using following script. Thanks, -- class String def normalize self.downcase.gsub(/_/, "") end end ARGV.each do |file| defs = nil File.read(file).each_with_index do |line, i| case line when /(\w+)\s*=\s*Win32API.new\([^,]+?,\s*.(\w+)/ a, b = $1, $2 p ["Win32API", file, i + 1, a, b] if a.normalize != b.normalize when /(\w+).call\(/ next unless defs a = $1 p ["def/call", file, i + 1, defs, a] if a.normalize != defs.normalize when /def\s+(\w+)/ defs = $1 end end end ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85 From noreply at rubyforge.org Wed Feb 28 15:47:31 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Feb 2007 15:47:31 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Support Requests-8957 ] Killing grandchildren? Message-ID: <20070228204731.3B92F524228D@rubyforge.org> Support Requests item #8957, was opened at 2007-02-28 13:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=8957&group_id=85 Category: win32-process Group: None Status: Open Resolution: None Priority: 3 Submitted By: Chad Woolley (thewoolleyman) Assigned to: Nobody (None) Summary: Killing grandchildren? Initial Comment: I am trying to spawn, then kill, a gem_server process. On windows, however, this actually spawns a child cmd instance for the gem_installer.bat file, which then spawns a grandchild ruby process for the gem_server command. I can't figure out how to make the grandchild process die. If I could get it's PID, I could kill it, but I only have the pid of the child process. If I kill the child, then the grandchild is not killed, but stays alive, and is owned by the top-level cmd shell process. Here's the file where I am trying to do this: http://rubyforge.org/viewvc/trunk/spec/helper/embedded_gem_server.rb?revision=353&root=geminstaller&view=markup Thanks, Chad ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=8957&group_id=85 From noreply at rubyforge.org Wed Feb 28 20:36:18 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Feb 2007 20:36:18 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Support Requests-8957 ] Killing grandchildren? Message-ID: <20070301013618.3C45A52422B1@rubyforge.org> Support Requests item #8957, was opened at 2007-02-28 13:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=8957&group_id=85 Category: win32-process Group: None Status: Open Resolution: None Priority: 3 Submitted By: Chad Woolley (thewoolleyman) Assigned to: Nobody (None) Summary: Killing grandchildren? Initial Comment: I am trying to spawn, then kill, a gem_server process. On windows, however, this actually spawns a child cmd instance for the gem_installer.bat file, which then spawns a grandchild ruby process for the gem_server command. I can't figure out how to make the grandchild process die. If I could get it's PID, I could kill it, but I only have the pid of the child process. If I kill the child, then the grandchild is not killed, but stays alive, and is owned by the top-level cmd shell process. Here's the file where I am trying to do this: http://rubyforge.org/viewvc/trunk/spec/helper/embedded_gem_server.rb?revision=353&root=geminstaller&view=markup Thanks, Chad ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2007-02-28 18:36 Message: There's just no way to do that as far as I know, because of the way the Windows process model works, i.e. Processes know about their children but not their grandchildren. However, since it appears that you're trying to daemonize a gem_server, I recommed using the ruby-services package. It has services for gems, webrick and fastri. Install the gem service, and control it that way instead. It's what I do. Regards, Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=8957&group_id=85 From noreply at rubyforge.org Wed Feb 28 20:38:53 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Feb 2007 20:38:53 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-8942 ] several typo in windows-pr. Message-ID: <20070301013853.718A752422B3@rubyforge.org> Bugs item #8942, was opened at 2007-02-28 07:59 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85 Category: windows-pr Group: Code Status: Open >Resolution: Accepted >Priority: 5 Submitted By: Katsuyuki MIYAMUKO (miyamuko) >Assigned to: Daniel Berger (djberg96) Summary: several typo in windows-pr. Initial Comment: I found typo in windows-pr. Attached is a patch against windows-pr HEAD. I checked all windows-pr sources using following script. Thanks, -- class String def normalize self.downcase.gsub(/_/, "") end end ARGV.each do |file| defs = nil File.read(file).each_with_index do |line, i| case line when /(\w+)\s*=\s*Win32API.new\([^,]+?,\s*.(\w+)/ a, b = $1, $2 p ["Win32API", file, i + 1, a, b] if a.normalize != b.normalize when /(\w+).call\(/ next unless defs a = $1 p ["def/call", file, i + 1, defs, a] if a.normalize != defs.normalize when /def\s+(\w+)/ defs = $1 end end end ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2007-02-28 18:38 Message: Thank you very much for the diff and the helper script. I'll apply those to CVS tonight. Since some of those could be rather crucial, expect an 0.6.5 release soon. Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85 From noreply at rubyforge.org Wed Feb 28 21:10:19 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 28 Feb 2007 21:10:19 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-8942 ] several typo in windows-pr. Message-ID: <20070301021019.3E86E5240CC0@rubyforge.org> Bugs item #8942, was opened at 2007-02-28 07:59 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85 Category: windows-pr Group: Code >Status: Closed Resolution: Accepted Priority: 5 Submitted By: Katsuyuki MIYAMUKO (miyamuko) Assigned to: Daniel Berger (djberg96) Summary: several typo in windows-pr. Initial Comment: I found typo in windows-pr. Attached is a patch against windows-pr HEAD. I checked all windows-pr sources using following script. Thanks, -- class String def normalize self.downcase.gsub(/_/, "") end end ARGV.each do |file| defs = nil File.read(file).each_with_index do |line, i| case line when /(\w+)\s*=\s*Win32API.new\([^,]+?,\s*.(\w+)/ a, b = $1, $2 p ["Win32API", file, i + 1, a, b] if a.normalize != b.normalize when /(\w+).call\(/ next unless defs a = $1 p ["def/call", file, i + 1, defs, a] if a.normalize != defs.normalize when /def\s+(\w+)/ defs = $1 end end end ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2007-02-28 19:10 Message: Fixed and included in windows-pr 0.6.5 ---------------------------------------------------------------------- Comment By: Daniel Berger (djberg96) Date: 2007-02-28 18:38 Message: Thank you very much for the diff and the helper script. I'll apply those to CVS tonight. Since some of those could be rather crucial, expect an 0.6.5 release soon. Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85