Revision 996
fixed the environment variable stuff
libsim.c | ||
---|---|---|
30 | 30 |
struct itimerval iv; |
31 | 31 |
int ret; |
32 | 32 |
|
33 |
int shared_state = shmat(atoi(getenv("memory_id")), NULL, 0); |
|
33 |
shared_state = shmat(atoi(getenv("memory_id")), NULL, 0); |
|
34 |
|
|
34 | 35 |
if(shared_state < 0) |
35 | 36 |
{ |
36 |
printf("unable to get shared memory region\n");
|
|
37 |
return 1;
|
|
37 |
printf("unable to get shared memory region\n");
|
|
38 |
return 1;
|
|
38 | 39 |
} |
39 | 40 |
|
40 | 41 |
|
Also available in: Unified diff