[U2] [UV] LIST.LOCKS - Unable to get process lock semaphore

2005-02-17 Thread Marco Manyevere
In addition to my message below, when I enter the UV command LIST.LOCKD I get 
the following:
 
LIST.LOCKS
Unable to get process lock semaphore.
[EACCES] Permission denied
Unable to get process lock semaphore.
[EACCES] Permission denied
[192.168.1.1: remote disconnect]

Marco Manyevere [EMAIL PROTECTED] wrote:
Hi,

I get the error message 'Unable to get process lock semaphore' in a complicated 
application for which I have no source code.

1) What could be the cause of my problem? The only setup parameter I see linked 
to process semaphores is PSEMNUM which is set to 64. Can I increase this? What 
unix parameters are related if any?

2) How do I diagnose how many semaphores are actually being used? I'm on 
Unixware and the system says SEMAPHORE.STATUS is not supported.

3) How can I intentionally cause this problem in my own code?

Thanks for any help.

Marco.


-
ALL-NEW Yahoo! Messenger - all new features - even more fun! 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


-
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] LIST.LOCKS - Unable to get process lock semaphore

2005-02-17 Thread FFT2001
Marco wrote: In addition to my message below, when I enter the UV command 
LIST.LOCKD I get the following:
LIST.LOCKS
Unable to get process lock semaphore.

Well would this mean something like I can't access the LOCK table because some 
other process currently has it LOCKed ?

You could try writing a program that sets a lock and see if it also complains 
with the same message like this

OPEN VOC TO F.VOC ELSE STOP
READU IGNOREME FROM F.VOC,NOTHING THEN
   PRINT LOCK SET, RECORD FOUND
END ELSE PRINT LOCK SET, NO SUCH RECORD

Will
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] LIST.LOCKS - Unable to get process lock semaphore

2005-02-17 Thread Drew Henderson
Or, more simply, ED VOC NOTHING
Drew
[EMAIL PROTECTED] wrote:
Marco wrote: In addition to my message below, when I enter the UV command LIST.LOCKD I get the following:
 

LIST.LOCKS
   

Unable to get process lock semaphore.
Well would this mean something like I can't access the LOCK table because some 
other process currently has it LOCKed ?
You could try writing a program that sets a lock and see if it also complains 
with the same message like this
OPEN VOC TO F.VOC ELSE STOP
READU IGNOREME FROM F.VOC,NOTHING THEN
  PRINT LOCK SET, RECORD FOUND
END ELSE PRINT LOCK SET, NO SUCH RECORD
Will
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
 


--
--
Drew Henderson 110 Ginger Hall
Dir. for Computer Center OperationsMorehead State University
[EMAIL PROTECTED]  Morehead, kY 40351
  (606) 783-2445
--
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] LIST.LOCKS - Unable to get process lock semaphore

2005-02-17 Thread Ken Wallis
 [EMAIL PROTECTED] wrote:

 Marco wrote: In addition to my message below, when I enter
 the UV command LIST.LOCKD I get the following:
 
 LIST.LOCKS
 
 Unable to get process lock semaphore.
[important bit snipped by Will]
[EACCES] Permission denied

 Well would this mean something like I can't access the LOCK
 table because some other process currently has it LOCKed ?

If the issue were that another process already had control of the resource
then the UNIX error would be EAGAIN as in 'try it another time and you might
be OK', not EACCES.

Try ipcs -s to see what semaphores exist on the system and look at the
permissions on those.  Perhaps something has caused universe to create the
semaphores with a permission mask which stops you doing a semop on them?
Perhaps there is a program which is supposed to be setuid to access these
things and someone has chmod'ed it and removed the setuid bit?

Just my 2 cents. YMMV.

Cheers,

Ken
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/