September 2013

S M T W T F S
1 234567
891011121314
15161718192021
22232425262728
2930     

Custom Text

Most Popular Tags

This is probably only of interest to perhaps three of you, but what the heck.

I discovered today that EventMachine, a very commonly used Ruby library, has a completely broken popen implementation. Specifically, it doesn't ever call waitpid unless you are

  • Running on Linux and have selected the epoll option
  • or the process closes all of its input sockets.
In practice this means that if your subprocess spawns a background process and exits, EventMachine will not notify you of that process exiting until the subprocess dies too.

Lost a couple hours to this. It is in no way atypical of either EventMachine or Ruby, sadly.

From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Expand Cut Tags

No cut tags

Style Credit