From 07c43d9f0ccc41917f6cf4c9adf09d1d6a6a984d Mon Sep 17 00:00:00 2001 From: Marion Guthmuller Date: Wed, 10 Dec 2014 13:39:16 +0100 Subject: [PATCH] fix dot output with file descriptor checkpoint/restore --- src/mc/mc_checkpoint.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 8680749e64..38f64893db 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -632,6 +632,10 @@ static void MC_get_current_fd(mc_snapshot_t snapshot){ if (strncmp(link, "pipe:", 5) == 0 || strncmp(link, "socket:", 7) == 0) continue; + // If dot_output enabled, do not handle the corresponding file + if (dot_output != NULL && strcmp(basename(link), _sg_mc_dot_output_file) == 0) + continue; + // This is probably a shared memory used by lttng-ust: if(strncmp("/dev/shm/ust-shm-tmp-", link, 21)==0) continue; -- 2.20.1