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
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git]
/
src
/
mc
/
mc_checkpoint.cpp
diff --git
a/src/mc/mc_checkpoint.cpp
b/src/mc/mc_checkpoint.cpp
index
fca86d0
..
ef98cce
100644
(file)
--- a/
src/mc/mc_checkpoint.cpp
+++ b/
src/mc/mc_checkpoint.cpp
@@
-497,7
+497,7
@@
static std::vector<s_fd_infos_t> MC_get_current_fds(pid_t pid)
struct dirent* fd_number;
while ((fd_number = readdir(fd_dir))) {
- int fd_value =
atoi(fd_number->d_name
);
+ int fd_value =
xbt_str_parse_int(fd_number->d_name, "Found a non-numerical FD: %s. Freaking out!"
);
if(fd_value < 3)
continue;