From 96ac1ae586bc9cdbbdef543115f74b7bf91eb690 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 25 Jun 2020 14:58:01 +0100 Subject: [PATCH] =?UTF-8?q?examples:=20Clarify=20that=20envvar=20isn?= =?UTF-8?q?=E2=80=99t=20unset=20after=20being=20used?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Perhaps that was how sysprof used to behave, but it doesn’t seem to behave like that now. Signed-off-by: Philip Withnall --- examples/app.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/app.c b/examples/app.c index d48c5554..c2544cb1 100644 --- a/examples/app.c +++ b/examples/app.c @@ -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);