search for: waitpid2

Displaying 14 results from an estimated 14 matches for "waitpid2".

Did you mean: waitpid
2004 Dec 10
5
win32-process 0.3.1 is out
Hi all, Just wanted to let you know that I released 0.3.1 last night. This addresses Bug #712 and incorporates Patches #1087 and #1137 (thanks Aslak). I''ll try to get an open4 implementation out this weekend, though I noticed that Aslak''s patch is different than what Park originally had, so I''ll have to decide which I prefer, or if they can be blended somehow.
2006 May 07
2
Problem with the new version of win32-process
.../ruby/lib/ruby/site_ruby/1.8/windows/process.rb:132:in `call'': can''t convert false into Integer (TypeError) from c:/ruby/lib/ruby/site_ruby/1.8/windows/process.rb:132:in `OpenProcess'' from C:/eclipse/workspace/win32-process/lib/win32/process.rb:67:in `waitpid2'' from C:/eclipse/workspace/win32-process/examples/test_fork.rb:46 Which means it''s returning false instead of the pid. Any ideas? Thanks, Dan PS - To run this you''ll need the latest windows-pr from CVS.
2004 May 01
1
win32-mutex
I''ve committed documentation and a test suite for win32-mutex. Once again, I''m looking for a good sample program that we can use for the test.rb file that really demonstrates what you can accomplish with it. I scoured the web but didn''t find anything good. On another note, I came across another implementation called "fmutex" that I thought might be worth
2007 May 04
1
Trying to get a good example for win32-mutex
...9;'test'', :inherit => true) mm.gvalue = 0 mx = Win32::Mutex.new(true, MUTEXNAME) # named mutex object 3.times{ mx.wait puts "parent wait" sleep 5 printf("Value of GValue=%d\n", mm.gvalue) mx.release puts "parent release" } p Process.waitpid2(pid) p Process.waitpid2(pid2) It looks like the MMap.open(''test'') is working fine, but it''s not picking up the gvalue set in the parent for some reason. Any ideas? Thanks, Dan This communication is the property of Qwest and may contain confidential or privileged inf...
2007 Dec 28
2
puppet hangs on Puppet::Type::Package::ProviderYum
...pet::Type::Package::ProviderYum: Executing ''/usr/bin/python /usr/lib/ruby/site_ruby/1.8/'' notice: Caught INT; shutting down debug: Signal caught here: debug: /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:315:in `call'' debug: /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:315:in `waitpid2'' debug: /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:315:in `execute'' debug: /usr/lib/ruby/site_ruby/1.8/puppet/provider.rb:138:in `python'' debug: /usr/lib/ruby/site_ruby/1.8/puppet/provider/package/yum.rb:32:in `prefetch'' debug: /usr/lib/ruby/site_ruby/1.8/puppet/...
2007 Aug 10
3
[ win32utils-Bugs-12979 ] Error while trying to update my gem collection
Bugs item #12979, was opened at 2007-08-10 15:29 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=12979&group_id=85 Category: windows-pr Group: None Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Error while trying to update my gem collection Initial Comment: C:\ruby>gem update Updating
2007 Aug 07
0
[ win32utils-Bugs-12881 ] Cannot wait on Process - service_daemon/service_main
...ontributors of this excellent library. Windows XP Pro SP2 Ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] Service 0.5.2 Process 0.5.3 I am using code based on the examples tdaemon.rb and tdaemon_ctl.rb Within tdaemon.rb/service_main() I launch an exe using Process.create and then use Process.waitpid2(process_id) to catch it if it crashes and then restart it. This works fine but when I call service_stop to kill the process it the call blocks until I kill the exe externally. Any suggestions ? ---------------------------------------------------------------------- You can respond by visiting...
2006 Apr 19
0
open4-0.3.0
...----------------------- harp: > cat sample/simple.rb require "open4" pid, stdin, stdout, stderr = Open4::popen4 "sh" stdin.puts "echo 42.out" stdin.puts "echo 42.err 1>&2" stdin.close ignored, status = Process::waitpid2 pid puts "pid : #{ pid }" puts "stdout : #{ stdout.read.strip }" puts "stderr : #{ stderr.read.strip }" puts "status : #{ status.inspect }" puts "exitstatus : #{ status.exitstatus }" harp: > rub...
2006 Nov 04
0
open4-0.5.1
...----------------------- harp: > cat sample/simple.rb require "open4" pid, stdin, stdout, stderr = Open4::popen4 "sh" stdin.puts "echo 42.out" stdin.puts "echo 42.err 1>&2" stdin.close ignored, status = Process::waitpid2 pid puts "pid : #{ pid }" puts "stdout : #{ stdout.read.strip }" puts "stderr : #{ stderr.read.strip }" puts "status : #{ status.inspect }" puts "exitstatus : #{ status.exitstatus }" harp: > rub...
2006 Aug 07
0
open4-0.5.0
...----------------------- harp: > cat sample/simple.rb require "open4" pid, stdin, stdout, stderr = Open4::popen4 "sh" stdin.puts "echo 42.out" stdin.puts "echo 42.err 1>&2" stdin.close ignored, status = Process::waitpid2 pid puts "pid : #{ pid }" puts "stdout : #{ stdout.read.strip }" puts "stderr : #{ stderr.read.strip }" puts "status : #{ status.inspect }" puts "exitstatus : #{ status.exitstatus }" harp: > rub...
2011 Jun 16
7
[PATCH] replace fchmod()-based heartbeat with raindrops
...assert_equal 0, droplet.tick + assert_equal(now, droplet.tick = now) + assert_equal now, droplet.tick + assert_equal(0, droplet.tick = 0) + assert_equal 0, droplet.tick + end + end + + def test_shared_process + droplet = Unicorn::Worker.new(0) + _, status = Process.waitpid2(fork { droplet.tick += 1; exit!(0) }) + assert status.success?, status.inspect + assert_equal 1, droplet.tick + + _, status = Process.waitpid2(fork { droplet.tick += 1; exit!(0) }) + assert status.success?, status.inspect + assert_equal 2, droplet.tick + end +end diff --git a/unicor...
2008 Oct 14
1
Starting Server gives an error
...class on Windows. win32-eventlog (0.4.6) Interface for the MS Windows Event Log. win32-file (0.5.4) Extra or redefined methods for the File class on Windows. win32-file-stat (1.2.5) A File::Stat class tailored to MS Windows win32-process (0.5.3) Adds fork, wait, wait2, waitpid, waitpid2 and a special kill method win32-sapi (0.1.4) An interface to the MS SAPI (Sound API) library. win32-sound (0.4.1) A library for playing with sound on MS Windows. windows-api (0.2.0) An easier way to create methods using Win32API windows-pr (0.7.1) Windows functions and constants...
2012 Jan 31
12
FreeBSD jail and unicorn
Hello, I''m using unicorn since a while, but now I try to run it the first time inside a FreeBSD jail. The initial start of unicorn works fine and it serves all the requests. But if I want to restart it using the USR2 signal, it (more or less) slowly starts using more and more CPU cycles. There is no error message in the logs and it quite hard to reproduce that error. In 1 of 20 tries,
2009 Aug 11
5
Failed to retrieve current state of resource: No child processes
...ll - resoruces fail with error such as: err: //beczulka/common/common_tweaks/common_bash_rc/File[/root/.bashrc]: Failed to retrieve current state of resource: No child processes Adding --trace on the command line shows for example: /usr/lib/ruby/1.8/puppet/util.rb:290:in `waitpid2'' /usr/lib/ruby/1.8/puppet/util.rb:290:in `execute'' /usr/lib/ruby/1.8/puppet/util/diff.rb:12:in `diff'' /usr/lib/ruby/1.8/puppet/util/diff.rb:67:in `string_file_diff'' /usr/lib/ruby/1.8/puppet/type/file/source.rb:163:in `insync?'&...