Computing.Net > Forums > Unix > Semaphore error

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Semaphore error

Reply to Message Icon

Name: ChrisR
Date: December 15, 2000 at 12:13:40 Pacific
Comment:

On the Sun Solaris 2.6 with no semaphores or shared memory running my program gets hung (stops no errors) on the following line:
semlock(sem_init(gettoken(1),5,"0660",0)
The program compiles OK with no errors or warning. Anyone have any ideas on things to check.



Sponsored Link
Ads by Google

Response Number 1
Name: John
Date: December 21, 2000 at 12:45:45 Pacific
Reply:

Make sure your using the union statement for the semctl. Without the union statement it will compile ok but not run. Unions are required for semctl. Hope this helps.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Semaphore error

error while compiling jdk14 www.computing.net/answers/unix/error-while-compiling-jdk14-/5332.html

Execvp errors www.computing.net/answers/unix/execvp-errors/2093.html

error message in script www.computing.net/answers/unix/error-message-in-script/7025.html