LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Brian Duggan Date: Wed Mar 21 12:21:40 2007 Subject: Re: cancelling queued items
On Wednesday, March 21, Justin Mason wrote: > It sounds pretty good -- just one thing -- how is a caller supposed to get > the datapath? Presumably they don't construct it themselves... From the $job object (obtainable by sending a callback to visit_all_jobs()). Though actually, it looks like using $job->{pathqueue} instead of the datapath might be easier, so that pickup_queued_job() doesn't have to read the queuefile (to find out the datapath). > that's ok, that suggestion is a one-liner. Having said that -- a test case > "t" script would rock though :) Okay, I've attached one. thanks! Brian ps On a separate note, I noticed that read_control_file() is always called with two arguments, but the second argument is ignored. Is this perhaps an alternative to saying 'local *IN' in read_control_file()?
| Navigate in group perl.ipc.dirqueue at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |