[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?