Molinete* molinete = (Molinete*) shmat(shm_id, NULL, 0);
if (molinete == (Molinete*) -1)
{
cerr << "Error al attachear shared memory.\n";
return 3;
}
Molinete* molinete = (Molinete*) shmat(shm_id, NULL, 0);
if (molinete == (Molinete*) -1)
{
cerr << "Error al attachear shared memory.\n";
return 3;
}