Locking problem - suspect it's badly behaved app

Sean Murphy sean.murphy at Teltec.DCU.IE
Tue Feb 16 14:47:19 GMT 1999


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've got a problem with locking when using Ghostview to display 
postscript files on the server.

I'm modifying the files through my unix a/c and displaying them on 
my pc via samba with ghostview. I had a look at the faqs which told 
me that this wasn't a very good idea. However, it would make my life 
a bit easier if I could do it.

My problem is that when I modify the file on the server I can't view 
the modified file on my pc until some time later (basically, until the 
lock has been released), even if I kill ghostview and start it again.

I had a look at the locking info (via smbstatus) and I found that when 
I open the file for viewing with ghostview the postscript file is locked. 
When I kill ghostview, however, the lock is not released. This is in 
contrast to what happens when I open (for example) an excel file on 
the server. In that case, a lock is created and when I close the file, 
the lock is released immediately. Hence, I think ghostview is at fault.

So, my questions are 1) is ghostview at fault? 2) if so, how can 
ghostview be modified to ensure that the file open and close 
operations create and release the locks properly? 3) if ghostview is 
not at fault, what is likely to be the problem?

TIA,
Sean.


-----BEGIN PGP SIGNATURE-----
Version: PGP 5.5.5 -- QDPGP 2.12 
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBNsmE9j/TsJ/hlBozEQL+CwCgjZCuL324ibepS6c7WDbTFEzc1ogAn1L4
RGIBNNRSPvFhBEl2nnra3C3U
=ViWy
-----END PGP SIGNATURE-----
-----
Sean Murphy,		Phone: +353-1-7045080
Teltec Ireland,		Fax: +353-1-7045092
DCU, Dublin 9,		email: s.murphy at teltec.dcu.ie
Ireland.


More information about the samba mailing list