mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-capture: copy stat when dup'ing reader
This commit is contained in:
@ -951,6 +951,8 @@ sysprof_capture_reader_copy (SysprofCaptureReader *self)
|
|||||||
copy->filename = g_strdup (self->filename);
|
copy->filename = g_strdup (self->filename);
|
||||||
copy->fd = fd;
|
copy->fd = fd;
|
||||||
copy->end_time = self->end_time;
|
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);
|
copy->buf = g_malloc (self->bufsz);
|
||||||
memcpy (copy->buf, self->buf, self->bufsz);
|
memcpy (copy->buf, self->buf, self->bufsz);
|
||||||
|
|||||||
Reference in New Issue
Block a user