[sysprof/wip/chergert/sysprof-3] libsysprof-capture: copy stat when dup'ing reader



commit 15d2eafcff0f219a246751627dc7cd35af9529f4
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 15 16:39:44 2019 -0700

    libsysprof-capture: copy stat when dup'ing reader

 src/libsysprof-capture/sysprof-capture-reader.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libsysprof-capture/sysprof-capture-reader.c b/src/libsysprof-capture/sysprof-capture-reader.c
index a240276..f81607f 100644
--- a/src/libsysprof-capture/sysprof-capture-reader.c
+++ b/src/libsysprof-capture/sysprof-capture-reader.c
@@ -951,6 +951,8 @@ sysprof_capture_reader_copy (SysprofCaptureReader *self)
   copy->filename = g_strdup (self->filename);
   copy->fd = fd;
   copy->end_time = self->end_time;
+  copy->st_buf = self->st_buf;
+  copy->st_buf_set = self->st_buf_set;
 
   copy->buf = g_malloc (self->bufsz);
   memcpy (copy->buf, self->buf, self->bufsz);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]