lkml.org 
[lkml]   [2013]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [perf patch] perf doesn't delete /tmp/perf-vdso.so.* file on exit
Date
Markus Trippelsdorf <markus <at> trippelsdorf.de> writes:
>
> perf top doesn't unlink /tmp/perf-vdso.so.* on exit.
> Fix this by calling vdso__exit() before exit(0).

> @@ -602,6 +603,7 @@ static void *display_thread_tui(void *arg)
> &top->session->header.env);
>
> exit_browser(0);
> + vdso__exit();
> exit(0);
> return NULL;
> }

I don't think it's enough - it doesn't cover all exit paths.
I'd suggest making it to use atexit/on_exit().

Thanks,
Namhyung





\
 
 \ /
  Last update: 2013-02-21 20:23    [W:0.071 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site