libsysprof: clear trace fd after reading

This commit is contained in:
Christian Hergert
2019-05-24 16:05:26 -07:00
parent 283c3f5ba5
commit 3706869e06

View File

@ -258,6 +258,8 @@ sysprof_tracefd_source_stop (SysprofSource *source)
if ((reader = sysprof_capture_reader_new_from_fd (priv->tracefd, 0)))
sysprof_capture_writer_cat (priv->writer, reader, NULL);
priv->tracefd = -1;
}
sysprof_source_emit_finished (source);