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.

(no subject)

Date: 2010-09-08 01:01 am (UTC)
From: [identity profile] knotfil.livejournal.com
In practice this means that if your subprocess spawns a completely broken popen implementation. Specifically, it doesn't ever call waitpid unless you of you, but what the process and exits, EventMachine or Ruby, sadly. This is in no way atypical of its input sockets.

(no subject)

Date: 2010-09-08 03:18 am (UTC)
From: [identity profile] gchpaco.livejournal.com
Are you trying to Dissociated Press me?

Expand Cut Tags

No cut tags

Style Credit