tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Charles Vachon <cvachon2 () mrn ! gouv ! qc ! ca>
To: tru64-unix-managers
Subject: SUMMARY: TU4.0F lpd errors w/read_some_chars function
Date: Thu, 31 Aug 2000 14:14:07 +0000	[thread overview]
Message-ID: <96773145425351.tru64-unix-managers.marc@archive.invalid> (raw)

#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 <speno@isc.upenn.edu>
"Mark W. Sornson" <Mark.Sornson@compaq.com>
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

                 reply	other threads:[~2000-08-31 14:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox