Re: bug in IPC-DirQueue 0.03?
[email protected] ((Justin Mason)) Wed, 12 Jan 2005 18:26:42 -0800
| Newsgroups | perl.ipc.dirqueue |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Jeffrey --
thanks for that patch -- it's applied to svn now. I should really
do a new release RSN...
- --j.
Jeffrey Wescott writes:
> A patch for the bug described below ... I may send you another patch
> for a -q option (quiet).
>
> -------------------------------->8 snip, snip
> Index: dq-server
> ==================================================================RCS file: /usr/local/cvsroot/IPC-DirQueue/dq-server,v
> retrieving revision 1.1.1.1
> diff -u -r1.1.1.1 dq-server
> --- dq-server 11 Jan 2005 21:55:01 -0000 1.1.1.1
> +++ dq-server 11 Jan 2005 23:56:21 -0000
> @@ -56,10 +56,11 @@
> ) or usage();
> $dir or usage();
>
> +my $jobsleft = $njobs;
> my $dq = IPC::DirQueue->new({ dir => $dir });
>
> while (1) {
> - last if ($njobs-- <= 0);
> + $njobs && last if ($jobsleft-- <= 0);
>
> my $job = $dq->wait_for_queued_job();
> if (!$job) { next; }
> -------------------------------->8 snip, snip
>
> ++jeffrey
>
> On Jan 11, 2005, at 15:48, Jeffrey Wescott wrote:
>
> > The dq-server command claims in the documentation that not specifying
> > --njobs or specifying --njobs 0 should mean that the server will run
> > forever (i.e. -- process an unlimited number of jobs). However, if
> > you don't specify --njobs or specify --njobs 0, it just quits.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Exmh CVS
iD8DBQFB5dxiMJF5cimLx9ARAskvAKCcDqmjF5fv4H7CccGoYk9zMUKK9QCeLDOt
k3L2s9sElVjlOKyrO08l6Go=
=gjXV
-----END PGP SIGNATURE-----