Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[b][red]This message was edited by Themis at 2004-8-30 3:6:0[/red][/b][hr]
Hello, I 'm trying to write a program that needs semaphores in Linux. I 'm trying to use semget() to get a semaphore but the call fails:
if ((((struct tobuffer_data *)data)->semid = semget(IPC_PRIVATE, 1, IPC_CREAT | 0644)) != 0)
What I get is:
semget(): Illegal seek
Any idea why this happens?
0 · ·