mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +00:00
examples: Clarify that envvar isn’t unset after being used
Perhaps that was how sysprof used to behave, but it doesn’t seem to behave like that now. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@ -30,9 +30,7 @@ main (int argc,
|
|||||||
|
|
||||||
/* This will check for SYSPROF_TRACE_FD=N, parse the FD number, and use it as
|
/* This will check for SYSPROF_TRACE_FD=N, parse the FD number, and use it as
|
||||||
* the backing file for the trace data. It may be a file, socket, pipe,
|
* the backing file for the trace data. It may be a file, socket, pipe,
|
||||||
* memfd, etc. To reduce chances of the FD being used a second time, this
|
* memfd, etc. The FD must not be used a second time.
|
||||||
* function will also set the environment variable to "" by overwriting the
|
|
||||||
* first byte to \0.
|
|
||||||
*/
|
*/
|
||||||
writer = sysprof_capture_writer_new_from_env (0);
|
writer = sysprof_capture_writer_new_from_env (0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user