Syntaktische korektur

This commit is contained in:
@Nurullah.Damla 2019-11-06 13:03:13 +01:00
parent 734d2e4f28
commit f69810898c

View File

@ -7,9 +7,9 @@
int shared_memory_init(key_t key){
memory_id = shmget(key, SHMMAXSIZE, IPC_CREAT | 0666);
if(shmid == -1){
if(memory_id == -1){
key++;
shmfnk(key);
shared_memory_init(key);
return memory_id;
}
return 0;