mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: clear trace fd after reading
This commit is contained in:
@ -258,6 +258,8 @@ sysprof_tracefd_source_stop (SysprofSource *source)
|
|||||||
|
|
||||||
if ((reader = sysprof_capture_reader_new_from_fd (priv->tracefd, 0)))
|
if ((reader = sysprof_capture_reader_new_from_fd (priv->tracefd, 0)))
|
||||||
sysprof_capture_writer_cat (priv->writer, reader, NULL);
|
sysprof_capture_writer_cat (priv->writer, reader, NULL);
|
||||||
|
|
||||||
|
priv->tracefd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sysprof_source_emit_finished (source);
|
sysprof_source_emit_finished (source);
|
||||||
|
|||||||
Reference in New Issue
Block a user