A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
this example needs to forcefully destroy the VMs
[simgrid.git]
/
src
/
mc
/
mc_unw_vmread.c
diff --git
a/src/mc/mc_unw_vmread.c
b/src/mc/mc_unw_vmread.c
index
742359e
..
2d7cb1e
100644
(file)
--- a/
src/mc/mc_unw_vmread.c
+++ b/
src/mc/mc_unw_vmread.c
@@
-42,7
+42,6
@@
static int access_mem(const unw_addr_space_t as,
{
if (write)
return - UNW_EINVAL;
- ssize_t s;
pid_t pid = _UPT_getpid(arg);
size_t size = sizeof(unw_word_t);
@@
-52,7
+51,7
@@
static int access_mem(const unw_addr_space_t as,
struct iovec local = { valp, size };
struct iovec remote = { (void*) addr, size };
- s = process_vm_readv(pid, &local, 1, &remote, 1, 0);
+ s
size_t s
= process_vm_readv(pid, &local, 1, &remote, 1, 0);
if (s >= 0) {
if (s != size)
return - UNW_EINVAL;