2012/8/3 John Mettraux <[email protected]>: > > Hello Rashi, > > please have a look at those two examples: > > https://gist.github.com/3245163 > https://gist.github.com/3245164 > > The second one uses a[n obscure] feature of the local participants (put and > get) (http://ruote.rubyforge.org/implementing_participants.html#stash), it > stores info that can be shared between on_workitem (consume) and on_cancel > (cancel). > > I'm not using Process.wait, it seems it blocks the whole (ruote) process > while the child is on, so I doing some polling in a loop.
As a Side-Note: Always (And I mean ALWAYS) use Process.wait(pid), Process.waitpid(pid) and/or Process.detach(pid). Failing to do so will cause zombies; see http://www.ruby-doc.org/core-1.9.3/Process.html#method-c-detach for further explanation > I hope this will help. If you have any question, just ask. Kind regards, > > -- > John Mettraux - http://lambda.io/jmettraux > > -- > you received this message because you are subscribed to the "ruote users" > group. > to post : send email to [email protected] > to unsubscribe : send email to [email protected] > more options : http://groups.google.com/group/openwferu-users?hl=en -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
