Hi, I have just upgraded to the latest version, and now I have problem with lots of packet_worker process hanging around 26820 pts/3 Z 0:03 [packet_worker_r] <defunct> basically, I always create a new worker and call exit after it''s done, so multiple process can be running at the same time. with the old version (before using packet), it deletes the process after it''s done, now it doesn''t seem to delete it. has the API change? I cannot find anything in the website documentation. This is my worker code: def create(args = nil) # do work exit end - reynard -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080626/7c493f10/attachment.html>
I think I just solved it, it deletes itself if I don''t call exit. - reynard On Thu, Jun 26, 2008 at 8:31 PM, Reynard <reynard.list at gmail.com> wrote:> Hi, > > I have just upgraded to the latest version, and now I have problem with > lots of packet_worker process hanging around > > 26820 pts/3 Z 0:03 [packet_worker_r] <defunct> > > basically, I always create a new worker and call exit after it''s done, so > multiple process can be running at the same time. with the old version > (before using packet), it deletes the process after it''s done, now it > doesn''t seem to delete it. has the API change? I cannot find anything in the > website documentation. > This is my worker code: > > def create(args = nil) > # do work > exit > end > > > - reynard >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080626/385717f9/attachment.html>
hmm actually it doesn''t. how can I prevent packet_worker defunct process hanging around? - reynard On Thu, Jun 26, 2008 at 9:17 PM, Reynard <reynard.list at gmail.com> wrote:> I think I just solved it, it deletes itself if I don''t call exit. > > - reynard > > > On Thu, Jun 26, 2008 at 8:31 PM, Reynard <reynard.list at gmail.com> wrote: > >> Hi, >> >> I have just upgraded to the latest version, and now I have problem with >> lots of packet_worker process hanging around >> >> 26820 pts/3 Z 0:03 [packet_worker_r] <defunct> >> >> basically, I always create a new worker and call exit after it''s done, so >> multiple process can be running at the same time. with the old version >> (before using packet), it deletes the process after it''s done, now it >> doesn''t seem to delete it. has the API change? I cannot find anything in the >> website documentation. >> This is my worker code: >> >> def create(args = nil) >> # do work >> exit >> end >> >> >> - reynard >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080626/8faaae46/attachment.html>
If you are using master branch of packet, then just pull again from the repository and your problem should be gone. If you are using svn trunk, here is the changelog thats required to fix zombie processes: http://github.com/gnufied/packet/commit/81b95c0cf83201c088d258b612e85a36019e6812 On Fri, Jun 27, 2008 at 8:36 AM, Reynard <reynard.list at gmail.com> wrote:> hmm actually it doesn''t. how can I prevent packet_worker defunct process > hanging around? > > - reynard > > On Thu, Jun 26, 2008 at 9:17 PM, Reynard <reynard.list at gmail.com> wrote: >> >> I think I just solved it, it deletes itself if I don''t call exit. >> >> - reynard >> >> >> On Thu, Jun 26, 2008 at 8:31 PM, Reynard <reynard.list at gmail.com> wrote: >>> >>> Hi, >>> >>> I have just upgraded to the latest version, and now I have problem with >>> lots of packet_worker process hanging around >>> >>> 26820 pts/3 Z 0:03 [packet_worker_r] <defunct> >>> >>> basically, I always create a new worker and call exit after it''s done, so >>> multiple process can be running at the same time. with the old version >>> (before using packet), it deletes the process after it''s done, now it >>> doesn''t seem to delete it. has the API change? I cannot find anything in the >>> website documentation. >>> This is my worker code: >>> >>> def create(args = nil) >>> # do work >>> exit >>> end >>> >>> >>> - reynard >> > > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org