[comp.windows.open-look] Printtool in Openwindows 2 hangs

ant@brolga.cc.uq.oz.au (Anthony Murdoch) (01/30/91)

Hi netters,

I was wondering if anyone had come across the following.  I am trying to get
printtool to work on my 3/50.  Whenever I run it, it hangs in a non-killable
mode.  I am able to print etc fine from the machine, it is only printtool that
dies.  I have done a trace of the run, the end of which follows ;

getpid () = 277
open ("/etc/printcap", 0, 0666) = 4
ioctl (4, 0x40125401, 0xdfff94c) = -1 ENOTTY (Inappropriate ioctl for device)
fstat (4, 0xdfff980) = 0
brk (0x36334) = 0
read (4, "lp|local line printer on UQVAX:\".., 8192) = 1303

This is where it hangs, on the first line of /etc/printcap (I have removed all
comments from the file.  I have also noticed that things have gotten a lot
slower.  I imagine the 3 zombie processes I now have running are going beserk.

Any help appreciated.  If no-one has encountered this before, I will report
it to sun and see if they have a fix.

ant

chuck@trantor.harris-atd.com (Chuck Musciano) (01/31/91)

In article <1991Jan30.101618.19319@brolga.cc.uq.oz.au>, ant@brolga.cc.uq.oz.au (Anthony Murdoch) writes:
> I was wondering if anyone had come across the following.  I am trying to get
> printtool to work on my 3/50.  Whenever I run it, it hangs in a non-killable
> mode.  I am able to print etc fine from the machine, it is only printtool that
> dies.

     Make sure you comment out any nonexistent printers in your printcap.
Printtool is really annoyed by printers which are defined in printcap but
don't exist.  Since just about every site has some archetypal Berkeley
printer defined, printtool has a heart attack.  We cfixed up our printcap
and printtool was happy.

-- 

Chuck Musciano				ARPA  : chuck@trantor.harris-atd.com
Harris Corporation 			Usenet: ...!uunet!x102a!trantor!chuck
PO Box 37, MS 3A/1912			AT&T  : (407) 727-6131
Melbourne, FL 32902			FAX   : (407) 729-3363

A good newspaper is never good enough,
	but a lousy newspaper is a joy forever.		-- Garrison Keillor