process->process_flags = MC_PROCESS_NO_FLAG;
process->socket = sockfd;
- process->pid = pid;
+ process->pid_ = pid;
if (pid==getpid())
process->process_flags |= MC_PROCESS_SELF_FLAG;
process->running = true;
if (process->is_self())
process->memory_file = -1;
else {
- int fd = open_vm(process->pid, O_RDWR);
+ int fd = open_vm(process->pid_, O_RDWR);
if (fd<0)
xbt_die("Could not open file for process virtual address space");
process->memory_file = fd;
Process* process = this;
process->process_flags = MC_PROCESS_NO_FLAG;
- process->pid = 0;
+ process->pid_ = 0;
MC_free_memory_map(process->memory_map);
process->memory_map = NULL;
}
} else {
if (pread_whole(this->memory_file, buffer, size, (off_t) address.address()) < 0)
- xbt_die("Read from process %lli failed", (long long) this->pid);
+ xbt_die("Read from process %lli failed", (long long) this->pid_);
return buffer;
}
}
memcpy((void*)address.address(), buffer, len);
} else {
if (pwrite_whole(this->memory_file, buffer, len, address.address()) < 0)
- xbt_die("Write to process %lli failed", (long long) this->pid);
+ xbt_die("Write to process %lli failed", (long long) this->pid_);
}
}