mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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)))
|
||||
sysprof_capture_writer_cat (priv->writer, reader, NULL);
|
||||
|
||||
priv->tracefd = -1;
|
||||
}
|
||||
|
||||
sysprof_source_emit_finished (source);
|
||||
|
||||
Reference in New Issue
Block a user