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:
Philip Withnall
2020-06-25 14:58:01 +01:00
parent 2be8cf7b2f
commit 96ac1ae586

View File

@ -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);