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
remove potential bug / clang warning
[simgrid.git]
/
src
/
mc
/
mc_checkpoint.c
diff --git
a/src/mc/mc_checkpoint.c
b/src/mc/mc_checkpoint.c
index
f7f0b52
..
d205926
100644
(file)
--- a/
src/mc/mc_checkpoint.c
+++ b/
src/mc/mc_checkpoint.c
@@
-593,7
+593,7
@@
static void MC_get_current_fd(mc_snapshot_t snapshot){
size_t total_fd = 0;
struct dirent* fd_number;
size_t total_fd = 0;
struct dirent* fd_number;
- while (
fd_number = readdir(fd_dir
)) {
+ while (
(fd_number = readdir(fd_dir)
)) {
int fd_value = atoi(fd_number->d_name);
int fd_value = atoi(fd_number->d_name);
@@
-607,7
+607,7
@@
static void MC_get_current_fd(mc_snapshot_t snapshot){
const size_t link_size = 200;
char link[200];
const size_t link_size = 200;
char link[200];
-
size_
t res = readlink(source, link, link_size);
+
in
t res = readlink(source, link, link_size);
if (res<0) {
xbt_die("Could not read link for %s", source);
}
if (res<0) {
xbt_die("Could not read link for %s", source);
}
@@
-629,6
+629,10
@@
static void MC_get_current_fd(mc_snapshot_t snapshot){
if (strncmp(link, "pipe:", 5) == 0 || strncmp(link, "socket:", 7) == 0)
continue;
if (strncmp(link, "pipe:", 5) == 0 || strncmp(link, "socket:", 7) == 0)
continue;
+ // This is probably a shared memory used by lttng-ust:
+ if(strncmp("/dev/shm/ust-shm-tmp-", link, 21)==0)
+ continue;
+
// Add an entry for this FD in the snapshot:
fd_infos_t fd = xbt_new0(s_fd_infos_t, 1);
fd->filename = strdup(link);
// Add an entry for this FD in the snapshot:
fd_infos_t fd = xbt_new0(s_fd_infos_t, 1);
fd->filename = strdup(link);