The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Process.waitid and other stuff

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
Process.waitid and other stuff Posted: Jun 14, 2005 8:18 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: Process.waitid and other stuff
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
Now that I have a working Linux distro (which, by the way, looks much nicer after I installed the nvidia driver), I've been going back and double checking some of my C extensions to make sure they work properly on Suse 9.3 (or Linux kernel 2.6.11 if you prefer).

Sure enough, proc-wait3 died a horrible, stinkerous death. It seems that as of kernel 2.6.9 they've added support for the waitid() function. Naturally, their implementation is different from, well, every other variant of *nix, so I was forced to add a couple dozen (literally) preprocessor macro checks to get it to work. But, now it works. :)

In other news, I happened to come across a couple native path handling functions I hadn't heard of before - resolvepath() and realpath(). I think the former is Solaris specific, while the latter appears to be common across most *nix flavors. I'm surprise Ruby doesn't have a File.realpath method to wrap this. Maybe I'll submit a patch on ruby-core.

In the meantime, I've added both File.resolvepath and File.realpath to the solaris-file package. :)

Read: Process.waitid and other stuff

Topic: Rails API on your Dashboard Previous Topic   Next Topic Topic: ruby2c 1.0.0 beta 3 released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use