Professional Web Applications Themes

[ANN] win32-process 0.1.0 (or, fork for Windows) - Ruby

Hi all, I am very pleased to announce the release of win32-process 0.1.0. Many thanks go to Park Heesob for his work on this one. What is it? =========== This package provides fork, wait, wait2, waitpid and waitpid2 for Win32 systems. It also provides an alternative kill method. How was this accomplished? ========================== See the docs and code for more details. Short answer: CreateProcess("ruby $0") Where can I get it? =================== It's on the RAA. You can also find it on the project page at http://rubyforge.org/projects/win32utils. Quick Example: ============== require 'win32/process' include Win32 # In the child, using block form ...

  1. #1

    Default [ANN] win32-process 0.1.0 (or, fork for Windows)

    Hi all,

    I am very pleased to announce the release of win32-process 0.1.0.
    Many thanks go to Park Heesob for his work on this one.

    What is it?
    ===========
    This package provides fork, wait, wait2, waitpid and waitpid2 for
    Win32 systems. It also provides an alternative kill method.

    How was this accomplished?
    ==========================
    See the docs and code for more details. Short answer:
    CreateProcess("ruby $0")

    Where can I get it?
    ===================
    It's on the RAA. You can also find it on the project page at
    http://rubyforge.org/projects/win32utils.

    Quick Example:
    ==============
    require 'win32/process'
    include Win32

    # In the child, using block form
    Win32::Process.fork do
    7.times { |i|
    puts "Child: #{i}"
    sleep 1
    }
    end

    # Back in the parent
    4.times{ |i|
    puts "Parent: #{i}"
    sleep 1
    }

    Win32::Process.wait

    puts "Continuing on..."

    Feedback welcome.

    Enjoy!

    The Win32 Utils Team
    Daniel Guest

  2. #2

    Default Re: [ANN] win32-process 0.1.0 (or, fork for Windows)

    il 19 Feb 2004 20:58:40 -0800, com (Daniel Berger) ha
    scritto::
     

    wow, this is cool, thanks :)
    BTW, I wonder if you considered the ability to do something like
    including Win32 if RUBY_PLATFORM=~/win/
    I mean, override standard Process module. Does this break something ?
    (I don't think so, but..)



    gabriele Guest

  3. #3

    Default Re: [ANN] win32-process 0.1.0 (or, fork for Windows)

    gabriele renzi <yahoo.it> wrote in message news:<com>... 
    >
    > wow, this is cool, thanks :)
    > BTW, I wonder if you considered the ability to do something like
    > including Win32 if RUBY_PLATFORM=~/win/
    > I mean, override standard Process module. Does this break something ?
    > (I don't think so, but..)[/ref]

    It's possible. You can do this by hand by modifying the extconf.rb
    file slightly as well as the process.c file - just change the
    definitions for cProcess and cProcessError so that they're part of the
    Process class or, if you prefer, Kernel.

    Perhaps we'll modify the install procedure to give folks that option.

    Regards,

    Dan
    Daniel Guest

Similar Threads

  1. fork process help needed
    By Naren in forum PERL Modules
    Replies: 2
    Last Post: March 16th, 09:09 AM
  2. Replies: 6
    Last Post: May 17th, 07:08 PM
  3. Win32::Process Kill Process in Windows ME
    By Stefan Mueller in forum PERL Modules
    Replies: 3
    Last Post: April 15th, 07:35 PM
  4. fork and modifying variables inside the new process
    By Kurt M. Dresner in forum Ruby
    Replies: 3
    Last Post: August 16th, 11:13 PM
  5. pipe - non blocking read? (fork/Win32)
    By Stuart Moore in forum PERL Miscellaneous
    Replies: 6
    Last Post: July 7th, 03:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139