mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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
|
||||
* 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
|
||||
* function will also set the environment variable to "" by overwriting the
|
||||
* first byte to \0.
|
||||
* memfd, etc. The FD must not be used a second time.
|
||||
*/
|
||||
writer = sysprof_capture_writer_new_from_env (0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user