<div>&gt; One option we have is to have &quot;packet_worker_runner&quot; as installed executable when user installs packet gem.</div>
<div>&nbsp;</div>
<div>The more I think about the idea of a packet runner, the more I like it.</div>
<div>&nbsp;</div>
<div>One reason I like it:&nbsp;it solves a problem with the Windows port I wrote. The Windows implementation needs to know what process to launch to create a new worker. It currently relaunches PACKET_APP, but I was concerned that might be a misuse of PACKET_APP and it forces the author of a PACKET_APP to implement code like what I wrote in script/backgroundrb to handle a &quot;worker parameter.&nbsp;If there&#39;s a separate app whose only purpose in life is to be the runner, no one else has to write code to handle those parameters.</div>

<div>&nbsp;</div>
<div>- Brian<br><br></div>
<div class="gmail_quote">On Sun, Apr 13, 2008 at 6:53 PM, hemant kumar &lt;<a href="mailto:gethemant@gmail.com">gethemant@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="Wj3C7c"><br>On Sun, 2008-04-13 at 16:41 -0700, Paul Kmiec wrote:<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp;This help significantly in improving stability of<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; BackgrounDRb and code<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp;written on top of packet. So what you guys think? Shall we<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; go for this<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &nbsp;change?<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; It sounds good to me. Anything that helps stability and<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; improves<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; memory usage will always get my vote.<br>&gt;<br>
&gt; I agree.<br>&gt;<br>&gt; Paul<br><br></div></div>Okay folks,<br><br>I have updated git repo of just packet with latest changes wherein<br>I have removed fork in favour of fork and exec:<br><br><a href="http://github.com/gnufied/packet/tree/master" target="_blank">http://github.com/gnufied/packet/tree/master</a><br>
<br>The only catch is, now we need some kinda runner to run our workers<br>since exec takes argument in form of string only. For example:<br><br>&nbsp;exec &quot;packet_worker_runner ##{t_worker_name}:{worker_read_end.fileno}:#{worker_write_end.fileno}:#{option_dump_length}&quot;<br>
<br>One option we have is to have &quot;packet_worker_runner&quot; as installed executable when user installs packet gem.<br><br>Any other ideas?<br>
<div>
<div></div>
<div class="Wj3C7c"><br><br><br>_______________________________________________<br>Backgroundrb-devel mailing list<br><a href="mailto:Backgroundrb-devel@rubyforge.org">Backgroundrb-devel@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel" target="_blank">http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Brian