Syntaktische korektur
This commit is contained in:
parent
734d2e4f28
commit
f69810898c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user