From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96773145425351.tru64-unix-managers.marc@archive.invalid> From: Charles Vachon Date: Thu, 31 Aug 2000 14:14:07 +0000 To: tru64-unix-managers Subject: SUMMARY: TU4.0F lpd errors w/read_some_chars function X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96773145425351 #Original message: # #Hello [DT]u-admins, # #I upgraded some of our Alphas last week to TU4.0F with PK4 and since, #I'm seeing a lot of errors like the following two cropping up in #syslog.dated/lpd.log: # #Aug 24 07:58:52 hagar lpd[14434]: INFO -- printjob: created file #/usr/spool/impr/q833/.daemon_running, printer Q833 #Aug 24 07:58:54 hagar lpd[14434]: WARNING -- read_some_chars: read #timeout after 2 seconds #Aug 24 07:58:54 hagar lpd[14434]: INFO -- printjob: exiting since all #done, printer Q833 # #and # #Aug 24 08:33:12 hagar lpd[8010]: INFO -- printjob: created file #/var/spool/impr/q802/.daemon_running, printer q802 #Aug 24 08:34:18 hagar lpd[8010]: ERROR -- read_some_chars: read() #failed, error: Bad file number #Aug 24 08:34:18 hagar lpd[8010]: INFO -- printjob: exiting since all #done, printer q802 # #Has anyone seen this before? . These messages are somewhat mysterious, #since I had no users complaning of anything regarding their prints. # #Thanks in advance! Thanks to: John P Speno "Mark W. Sornson" for taking time to reply. Following is Mark's answer, which describes well what happens: >Hello Charles, > >This was forwarded to me. I can answer your question. > >The messages are harmless (though annoying). Lpd now >makes an attempt to read data back from the printer before >closing the connection. We found that we had to do this >to support printers connected via DECservers. [If the >printer sent data back that lpd didn't read, closing the >connection by lpd caused the DECserver to flush its >buffer (possibly before completely sending the print job >data to the printer). Hence the readback by the lpd >internal function read_some_chars().] > >The second message sounds as though the print queue >specified /dev/null as the value for "lp" in /etc/printcap. >Lpd attempts the same read-data-before-closing connection, >but can't do it because it can't read from /dev/null, >hence the "Bad file number" error. > >We recently made some changes to eliminate both of these >messages, but they won't be available until the next patch >kit release. > >regards, >-mark sornson. >compaq Thanks again guys. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Charles Vachon tel: (418) 627-6355 x2760 email: cvachon2@mrn.gouv.qc.ca Administrateur de syst=E8me FRCQ/Minist=E8re des Ressources Naturelles du Qu=E9bec =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D