Re: Access Denied on Open Semaphore

2009-02-19 Thread Wan-Teh Chang
Hi, This is an NSPR question, so dev-tech-nspr is the right list for this question. Anyway, could you call PR_GetOSError() after PR_OpenSemaphore() fails? That'll tell us the value of 'errno' at that time. Searching in the NSPR source tree, I found that only EACCES and EPERM are mapped to PR_NO

Access Denied on Open Semaphore

2009-02-19 Thread Sam Laidler
Hi, hope all is well. A client has encountered error code -5966 (PR_NO_ACCESS_RIGHTS_ERROR) on a call to PR_OpenSemaphore(). My initial hypothesis was that the file was not deleted before the program shut down, potentially causing a clash on restarting. This seemed unlikely, on the face of it