about semget

flags must include read,write,execute permission.

for examples:

semget( 3333, 1, IPC_CREAT | IPC_EXCL | 0666 );

if there is not a '0666', then 'semop' wait will succed always. 

posted @ 2014-03-21 14:10  samu  阅读(163)  评论(0编辑  收藏  举报