[so] [Tema2][Linux] Eroare deschidere semafor

Mircea Gherzan mgherzan at anaconda.cs.pub.ro
Tue Apr 14 13:58:27 EEST 2009


calin badea <bottomofsky at gmail.com> wrote:
> Server: semc = sem_open("/semaforc",O_CREAT | O_RDWR , 0777, 0);
> Client: semcc = sem_open("/semaforc",O_RDWR);

Corect ar fi sa afiseazi cauza erorii (perror), mai ales ca problema
se manifesta chiar de la primul test.

Sidenote: O_RDWR n-are nici o semnificatie in contextul semafoarelor!

-- 
Mircea


More information about the so mailing list