# Fix for GLib::Spawn regression

**URL:** <https://www.ruby-forum.com/t/fix-for-glib-spawn-regression/212485>\
**Category:** Ruby-Gnome 2\
**Created:** [October 4, 2011, 3:07pm UTC](https://www.ruby-forum.com/t/fix-for-glib-spawn-regression/212485 "2011-10-04T15:07:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [October 4, 2011, 3:07pm UTC](https://www.ruby-forum.com/t/fix-for-glib-spawn-regression/212485/1 "2011-10-04T15:07:13Z")

</div>

Hi,

I’ve just opened a pull request  
[Fix for GLib::Spawn regression by geoffyoungs · Pull Request #1 · ruby-gnome/ruby-gnome · GitHub](https://github.com/ruby-gnome2/ruby-gnome2/pull/1) with a patch that  
fixes GLib::Spawn.async, GLib::Spawn…async\_with\_pipes and  
GLib::Spawn…sync when the environment parameter is nil.

I was hoping for someone else to check it over before I commit it -  
I’m assuming I’ve understood the purpose of RVAL2STRV\_ACCEPT\_NIL, but  
I could be wrong 🙂

Also I’ve added a test case, but I’m not sure whether it’ll work on  
Windows (or even how relevant it is there).

Thanks,

G.

–  
Random Musing - [http://www.frafferz.com/](http://www.frafferz.com/)  
Geek Blog - [http://geoffyoungs.github.com/](http://geoffyoungs.github.com/)

---

<div class="post-metadata">

**Author:** ![Geoff\_Y](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ac91a4/32.png) [@Geoff\_Y](https://www.ruby-forum.com/u/Geoff_Y)\
**Post date:** [October 4, 2011, 3:22pm UTC](https://www.ruby-forum.com/t/fix-for-glib-spawn-regression/212485/2 "2011-10-04T15:22:42Z")

</div>

On Tue, Oct 4, 2011 at 15:06, Geoff Y. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Windows (or even how relevant it is there).  
> It’s correct and Kouhei has already committed it.

Thanks, and sorry about messing this up.
