> From [EMAIL PROTECTED] Sat Aug 19 21:28:22 2000
> Date: Sun, 20 Aug 2000 15:34:56 +1200
> From: Godfrey <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: LPRng: status@ no longer works?
>
> I have upgraded to
>
> LPRng 3.6.24
>
> and I get the following error which I did not get with 3.6.22
>
> Printer: lp@server01
> Queue: no printable jobs in queue
> Status: job 'root@server01+872', attempt 3, allowed 3 at 15:20:18.290
> Status: send_failure_action 'JREMOVE' at 15:20:18.290
> Status: job 'root@server01+872', removing job - status JREMOVE at
> 15:20:18.290
> Status: removing job 'root@server01+872' - JREMOVE at 15:20:18.291
> Filter_status: pagecount using 'pjl info pagecount' at 15:19:58.290
> Filter_status: setting up printer at 15:19:58.290
> Filter_status: getting sync using 'pjl echo' at 15:19:58.290
> Filter_status: no response from printer at 15:20:18.283
>
>
> My printcap is as follows so that status should not be requested.
>
> /etc/printcap
> lp :lp=printer01.hattaway-associates.com%9100
> :sd=/var/spool/lpd/lp
> :ifhp=model=hp4,status@
> :filter=/usr/libexec/filters/ifhp
>
> 1070|Ps
> :lp=printer01.hattaway-associates.com%9100
> :sh:mx=0
> :sd=/var/spool/lpd/samba
>
> The printer is a Brother1070 connected to a SEH IC9-ETHERPRINT external
> printserver.
>
> The second entry is for smb so that no filtering is done as the windows
> pscript driver produces errors so I use the windows
> driver supplied by brother therefore no filtering is needed. This entry
> works.
>
> Has there been a change in the effect of status@ I have checked the
> documentation and it is still supposed to have the same effect.
>
>
> The error disappears if I change the ifhp line to
>
> :ifhp=model=hp4,sync@,waitend@,pagecount@,status@
>
> So presumably there is a possible bug?
>
>
> Godfrey
Apply the following patch and tell me if this fixes.
Apparently I was a little too agressive with trying to read
status :-)
*** ifhp.c 2000/08/19 18:45:22 1.65
--- ifhp.c 2000/08/20 18:21:38
***************
*** 239,245 ****
}
if( !ISNULL(Device) ){
Open_device( Device );
! } else {
Status = Fd_readable(1, &Poll_for_status);
}
Set_block_io( 0 );
--- 239,245 ----
}
if( !ISNULL(Device) ){
Open_device( Device );
! } else if( Status ){
Status = Fd_readable(1, &Poll_for_status);
}
Set_block_io( 0 );
*** open_device.c 2000/08/18 02:53:02 1.15
--- open_device.c 2000/08/20 18:22:20
***************
*** 124,130 ****
Errorcode = JABORT;
LOGERR_DIE("Open_device: did not open on fd 1");
}
! if( !Fd_readable(1, &Poll_for_status) ) Status = 0;
Set_block_io(1);
Set_keepalive(1);
if( dcopy ) free(dcopy); dcopy = 0;
--- 124,132 ----
Errorcode = JABORT;
LOGERR_DIE("Open_device: did not open on fd 1");
}
! if( Status ){
! Status = Fd_readable(1, &Poll_for_status);
! }
Set_block_io(1);
Set_keepalive(1);
if( dcopy ) free(dcopy); dcopy = 0;
-----------------------------------------------------------------------------
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------