From noreply at rubyforge.org Fri Apr 14 11:27:50 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 14 Apr 2006 11:27:50 -0400 Subject: [Win32utils-devel] [ win32utils-Bugs-4101 ] create hash param Message-ID: <200604141527.k3EFRoSk005342@rubyforge.org> Bugs item #4101, was opened at 2006-04-14 11:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 Category: win32-process Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: create hash param Initial Comment: hi, problem with process, when I do pid = Process.create( :app_name => command[0], :creation_flags => Process::DETACHED_PROCESS||Process::ABOVE_NORMAL, :startf_flags=> Process::USESHOWWINDOW, :sw_flags => Process::SW_MINIMIZE ) it appear in the normal show windows, ane the ABOVE_NORMAL is'nt used. it seems that the parameters arent used . any help? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 From noreply at rubyforge.org Fri Apr 14 11:29:26 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Fri, 14 Apr 2006 15:29:26 GMT Subject: [Win32utils-devel] [ win32utils-Bugs-4101 ] create hash param Message-ID: <200604141529.k3EFTQFo005590@rubyforge.org> Bugs item #4101, was opened at 2006-04-14 15:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 Category: win32-process Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: create hash param Initial Comment: hi, problem with process, when I do pid = Process.create( :app_name => command[0], :creation_flags => Process::DETACHED_PROCESS||Process::ABOVE_NORMAL, :startf_flags=> Process::USESHOWWINDOW, :sw_flags => Process::SW_MINIMIZE ) it appear in the normal show windows, ane the ABOVE_NORMAL is'nt used. it seems that the parameters arent used . any help? ---------------------------------------------------------------------- Comment By: Tophe Vigny (tophe) Date: 2006-04-14 15:29 Message: pid = Process.create( :app_name => command[0], :creation_flags =>Process::DETACHED_PROCESS :sw_flags => Process::SW_MINIMIZE ) won't work too ! please advice ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 From noreply at rubyforge.org Sat Apr 15 21:15:04 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 16 Apr 2006 10:15:04 +0900 Subject: [Win32utils-devel] [ win32utils-Bugs-4101 ] create hash param Message-ID: <200604160115.k3G1F4P4004808@rubyforge.org> Bugs item #4101, was opened at 2006-04-15 00:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 Category: win32-process Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: create hash param Initial Comment: hi, problem with process, when I do pid = Process.create( :app_name => command[0], :creation_flags => Process::DETACHED_PROCESS||Process::ABOVE_NORMAL, :startf_flags=> Process::USESHOWWINDOW, :sw_flags => Process::SW_MINIMIZE ) it appear in the normal show windows, ane the ABOVE_NORMAL is'nt used. it seems that the parameters arent used . any help? ---------------------------------------------------------------------- >Comment By: Park Heesob (phasis68) Date: 2006-04-16 10:15 Message: First, there is bug in process.c line #482. modify rbFlags = rb_hash_aref(rbArgs,rb_str_new2("creation_flags")) || INT2NUM(0); to rbFlags = rb_hash_aref(rbArgs,rb_str_new2("creation_flags")); if(rbFlags==Qnil) rbFlags = INT2NUM(0); Second, modify your code Process::DETACHED_PROCESS||Process::ABOVE_NORMAL, to Process::DETACHED_PROCESS|Process::ABOVE_NORMAL, Hope this helps, Park Heesob ---------------------------------------------------------------------- Comment By: Tophe Vigny (tophe) Date: 2006-04-15 00:29 Message: pid = Process.create( :app_name => command[0], :creation_flags =>Process::DETACHED_PROCESS :sw_flags => Process::SW_MINIMIZE ) won't work too ! please advice ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 From noreply at rubyforge.org Sun Apr 16 01:54:26 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sat, 15 Apr 2006 22:54:26 -0700 Subject: [Win32utils-devel] [ win32utils-Bugs-4101 ] create hash param Message-ID: <200604160554.k3G5sQJa006184@rubyforge.org> Bugs item #4101, was opened at 2006-04-14 08:27 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 Category: win32-process >Group: Code >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) >Assigned to: Daniel Berger (djberg96) Summary: create hash param Initial Comment: hi, problem with process, when I do pid = Process.create( :app_name => command[0], :creation_flags => Process::DETACHED_PROCESS||Process::ABOVE_NORMAL, :startf_flags=> Process::USESHOWWINDOW, :sw_flags => Process::SW_MINIMIZE ) it appear in the normal show windows, ane the ABOVE_NORMAL is'nt used. it seems that the parameters arent used . any help? ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2006-04-15 22:54 Message: The bug has been fixed in CVS and will be released tomorrow. Also, as per Heesob's comments, use '|', not '||'. Thanks for the report. Dan ---------------------------------------------------------------------- Comment By: Park Heesob (phasis68) Date: 2006-04-15 18:15 Message: First, there is bug in process.c line #482. modify rbFlags = rb_hash_aref(rbArgs,rb_str_new2("creation_flags")) || INT2NUM(0); to rbFlags = rb_hash_aref(rbArgs,rb_str_new2("creation_flags")); if(rbFlags==Qnil) rbFlags = INT2NUM(0); Second, modify your code Process::DETACHED_PROCESS||Process::ABOVE_NORMAL, to Process::DETACHED_PROCESS|Process::ABOVE_NORMAL, Hope this helps, Park Heesob ---------------------------------------------------------------------- Comment By: Tophe Vigny (tophe) Date: 2006-04-14 08:29 Message: pid = Process.create( :app_name => command[0], :creation_flags =>Process::DETACHED_PROCESS :sw_flags => Process::SW_MINIMIZE ) won't work too ! please advice ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=4101&group_id=85 From noreply at rubyforge.org Sun Apr 16 13:07:18 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 16 Apr 2006 12:07:18 -0500 Subject: [Win32utils-devel] [ win32utils-Patches-4121 ] Make it possible to read process exit status Message-ID: <200604161707.k3GH7I6O032446@rubyforge.org> Patches item #4121, was opened at 2006-04-16 12:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 Category: win32-open3 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Samuel Tesla (stesla) Assigned to: Nobody (None) Summary: Make it possible to read process exit status Initial Comment: The UNIX Open3 sets the global $? to a Process::Status object so that one can read the exit status of the sub process. It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c). I also made popen3 and popen4 return the object when they're called with a block. I figured it was as neat idea. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 From noreply at rubyforge.org Mon Apr 17 18:57:34 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 17 Apr 2006 17:57:34 -0500 Subject: [Win32utils-devel] [ win32utils-Patches-4121 ] Make it possible to read process exit status Message-ID: <200604172257.k3HMvY1f015805@rubyforge.org> Patches item #4121, was opened at 2006-04-16 12:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 Category: win32-open3 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Samuel Tesla (stesla) Assigned to: Nobody (None) Summary: Make it possible to read process exit status Initial Comment: The UNIX Open3 sets the global $? to a Process::Status object so that one can read the exit status of the sub process. It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c). I also made popen3 and popen4 return the object when they're called with a block. I figured it was as neat idea. ---------------------------------------------------------------------- >Comment By: Samuel Tesla (stesla) Date: 2006-04-17 17:57 Message: One thing to note. My C-foo on windows isn't the greatest. There /is/ a global variable in process.c called rb_last_status which is what is hooked up to $?. In io.c and eval.c that variable is used as an extern. I don't know if you can get to that from a DLL. I tried just doing "extern VALUE rb_last_status" but always got a blow-up when I assigned to it. If there's some way to declare it so that we can get to it from inside the module, that would probably be better than #last_status. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 From noreply at rubyforge.org Sun Apr 23 13:48:45 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 23 Apr 2006 12:48:45 -0500 Subject: [Win32utils-devel] [ win32utils-Patches-4121 ] Make it possible to read process exit status Message-ID: <200604231748.k3NHmj0C009616@rubyforge.org> Patches item #4121, was opened at 2006-04-16 12:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 Category: win32-open3 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Samuel Tesla (stesla) Assigned to: Nobody (None) Summary: Make it possible to read process exit status Initial Comment: The UNIX Open3 sets the global $? to a Process::Status object so that one can read the exit status of the sub process. It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c). I also made popen3 and popen4 return the object when they're called with a block. I figured it was as neat idea. ---------------------------------------------------------------------- Comment By: Samuel Tesla (stesla) Date: 2006-04-17 17:57 Message: One thing to note. My C-foo on windows isn't the greatest. There /is/ a global variable in process.c called rb_last_status which is what is hooked up to $?. In io.c and eval.c that variable is used as an extern. I don't know if you can get to that from a DLL. I tried just doing "extern VALUE rb_last_status" but always got a blow-up when I assigned to it. If there's some way to declare it so that we can get to it from inside the module, that would probably be better than #last_status. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 From noreply at rubyforge.org Sun Apr 23 13:50:35 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 23 Apr 2006 12:50:35 -0500 Subject: [Win32utils-devel] [ win32utils-Patches-4121 ] Make it possible to read process exit status Message-ID: <200604231750.k3NHoZZg010563@rubyforge.org> Patches item #4121, was opened at 2006-04-16 12:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 Category: win32-open3 Group: None Status: Open Resolution: None Priority: 3 Submitted By: Samuel Tesla (stesla) Assigned to: Nobody (None) Summary: Make it possible to read process exit status Initial Comment: The UNIX Open3 sets the global $? to a Process::Status object so that one can read the exit status of the sub process. It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c). I also made popen3 and popen4 return the object when they're called with a block. I figured it was as neat idea. ---------------------------------------------------------------------- >Comment By: Samuel Tesla (stesla) Date: 2006-04-23 12:50 Message: I figured out how to get to the global that $? reads from, so this new patch makes win32-open3 pretty much behave exactly like the unix open3. ---------------------------------------------------------------------- Comment By: Samuel Tesla (stesla) Date: 2006-04-17 17:57 Message: One thing to note. My C-foo on windows isn't the greatest. There /is/ a global variable in process.c called rb_last_status which is what is hooked up to $?. In io.c and eval.c that variable is used as an extern. I don't know if you can get to that from a DLL. I tried just doing "extern VALUE rb_last_status" but always got a blow-up when I assigned to it. If there's some way to declare it so that we can get to it from inside the module, that would probably be better than #last_status. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85 From noreply at rubyforge.org Sun Apr 23 19:01:10 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 23 Apr 2006 20:01:10 -0300 Subject: [Win32utils-devel] [ win32utils-Feature Requests-3978 ] Compile files for Ruby One-Click installer Message-ID: <200604232301.k3NN1Ags005001@rubyforge.org> Feature Requests item #3978, was opened at 2006-03-30 07:01 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=414&aid=3978&group_id=85 Category: None Group: Code Status: Closed Resolution: Rejected Priority: 3 Submitted By: Nobody (None) Assigned to: Daniel Berger (djberg96) Summary: Compile files for Ruby One-Click installer Initial Comment: Compile the files so they work with the Ruby One-Click installer. Most people developing on Windows are using the Ruby One-Click installer. But now when you drop one of the .so files in a folder you get a segmentation fault. Thanks. ---------------------------------------------------------------------- Comment By: Luis Lavena (luislavena) Date: 2006-04-23 20:01 Message: Daniel, Actually Curt is using the the ruby-mswin32 from http://www.garbagecollect.jp/ruby/mswin32/en/ I solved different msvcrt and compile issues using VC2003 Toolkit and the platform SDK headers. That is what I use to compile the win32-service gem we depend on Mongrel. I bundled the headers, the programs and everyting of this in a 14mb 7z file to drop in as compiler. Cannot make that public due license of "distribution" of the Platform SDK headers, but person-to-person is different. Luis ---------------------------------------------------------------------- Comment By: Daniel Berger (djberg96) Date: 2006-03-30 17:31 Message: There is nothing I can do about it. Curt, for various reasons, decided to compile the latest version of the one-click installer with VC++ 6.0. The best we can do is to replace the C code with pure Ruby versions. We're already in the process of doing that now. - Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=414&aid=3978&group_id=85 From noreply at rubyforge.org Mon Apr 24 21:20:52 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 24 Apr 2006 18:20:52 -0700 Subject: [Win32utils-devel] [ win32utils-Feature Requests-1460 ] Redefine File.stat Message-ID: <200604250120.k3P1KqNU025891@rubyforge.org> Feature Requests item #1460, was opened at 2005-02-05 13:12 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=414&aid=1460&group_id=85 Category: win32-file Group: Code >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Daniel Berger (djberg96) >Assigned to: Daniel Berger (djberg96) Summary: Redefine File.stat Initial Comment: The current File.stat needs to be redefined to use the win32/etc package behind the scenes if possible because information such as uid and gid fields (among others) are invalid. ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2006-04-24 18:20 Message: Done! ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=414&aid=1460&group_id=85 From noreply at rubyforge.org Wed Apr 26 15:07:31 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 26 Apr 2006 15:07:31 -0400 Subject: [Win32utils-devel] [ win32utils-Support Requests-4264 ] win32 process Message-ID: <200604261907.k3QJ7VUO022750@rubyforge.org> Support Requests item #4264, was opened at 2006-04-26 15:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=4264&group_id=85 Category: Install Problem (example) Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: win32 process Initial Comment: I try to use the fork example, but I only get the error message: ruby.exe Entry Point Not Found The procedure entry point GetProcessId could not be located in the dynamic link library KERNEL32.dll. What do I need to install else? MS ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=4264&group_id=85 From noreply at rubyforge.org Wed Apr 26 20:25:08 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Thu, 27 Apr 2006 09:25:08 +0900 Subject: [Win32utils-devel] [ win32utils-Support Requests-4264 ] win32 process Message-ID: <200604270025.k3R0P8KV032121@rubyforge.org> Support Requests item #4264, was opened at 2006-04-27 04:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=4264&group_id=85 Category: Install Problem (example) Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: win32 process Initial Comment: I try to use the fork example, but I only get the error message: ruby.exe Entry Point Not Found The procedure entry point GetProcessId could not be located in the dynamic link library KERNEL32.dll. What do I need to install else? MS ---------------------------------------------------------------------- >Comment By: Park Heesob (phasis68) Date: 2006-04-27 09:25 Message: Hi, What's your OS? GetProcessId function requires Windows Vista or Windows XP SP1. For the OS not support GetProcessId, some modification on extconf.rb is required. Regards, Park Heesob ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=4264&group_id=85 From noreply at rubyforge.org Wed Apr 26 21:00:33 2006 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Wed, 26 Apr 2006 18:00:33 -0700 Subject: [Win32utils-devel] [ win32utils-Support Requests-4264 ] win32 process Message-ID: <200604270100.k3R10XDN006784@rubyforge.org> Support Requests item #4264, was opened at 2006-04-26 12:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=4264&group_id=85 Category: Install Problem (example) Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: win32 process Initial Comment: I try to use the fork example, but I only get the error message: ruby.exe Entry Point Not Found The procedure entry point GetProcessId could not be located in the dynamic link library KERNEL32.dll. What do I need to install else? MS ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2006-04-26 18:00 Message: I do check for GetProcessId in the extconf.rb file. You must be using the precompiled binary on Win2k or NT. You'll have to build it from source. - Dan ---------------------------------------------------------------------- Comment By: Park Heesob (phasis68) Date: 2006-04-26 17:25 Message: Hi, What's your OS? GetProcessId function requires Windows Vista or Windows XP SP1. For the OS not support GetProcessId, some modification on extconf.rb is required. Regards, Park Heesob ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=412&aid=4264&group_id=85