[so] [Tema2][Linux]Deschidere semafoare
Bogdan Sass
bogdan.sass at catc.ro
Mon Apr 20 13:51:23 EEST 2009
Daniel Flamaropol wrote:
> Salut,
>
> Ca sa adaug putin la "ciudatenia" situatiei, vreau sa mentionez ca eu am
> folosit _exact_ codul din laborator. ( mai clar :
> server = sem_open( name, O_CREAT | O_RDWR, 0644, 1);
> respectiv
> client = sem_open( name, O_RDWR); )
> si nu am intampinat nicio problema, nici pe masina virtuala, si nici
> in testarea
> online.
>
> S-ar putea ca rezolvarea din laborator sa fie "gresita" conform man, dar
> cu siguranta merge, cel putin in cazul meu. Sa fie o problema de accese ?
Si eu am folosit cam acelasi cod. Din ce vad in surse, sem_open pare
sa ignore acel O_RDWR. (si ca urmare totul merge :) )
--
Bogdan Sass
CCAI,CCSP,JNCIA-ER,CCIE #22221 (RS)
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3287 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090420/d3d1b101/attachment.bin>
More information about the so
mailing list