*** empty log message ***

This commit is contained in:
glenux 2004-02-26 08:11:00 +00:00 committed by Glenn Y. Rolland
parent 0e88e967c7
commit b3a4623a26
2 changed files with 18 additions and 2 deletions

View file

@ -39,9 +39,24 @@ int msgSpaceDelete(msgSpaceId externId){
printf("ok\n");
if (shm_unlink(nzgId)<0){
perror("shm_unlink");
return -1;
NZG_ERROR("shm_unlink",nzgId);
goto ERROR;
};
if (msgSpaceListLock()<0){
NZG_ERROR("msgSpaceListLock","");
goto ERROR;
}
if (msgSpaceListRem(nzgId) < 0){
NZG_ERROR("msgSpaceListRem",nzgId);
goto ERROR;
}
if (msgSpaceListUnlock()< 0){
NZG_ERROR("msgSpaceListUnlock","");
goto ERROR;
}
return 0;
ERROR:
return -1;
}

View file

@ -40,5 +40,6 @@ int main(void) {
montext=msgGet(mSPAC,0,0);
printf("get-ok\n");
printf("### test Reception %d ###\n",(int)*montext);
msgSpaceDelete(testId);
return 0;
}