| Chrome plugins show up as /proc/self/exe in top | |||||||
| Project Member Reported by evan@chromium.org, Dec 1 2009 | Back to list | ||||||
I always get confused about when we can just mutate argv[0] and when we need to use setproctitle(). If anyone can instruct me on what to do here I will fix it.
Comment 1
by
mdm@chromium.org,
Dec 2 2009
,
Dec 14 2009
,
Jan 3 2010
Turns out there is also another way to change process names in Linux: prctl(PR_SET_NAME). This changes the short name that shows in top, for instance. I've got a CL that puts all these pieces together and fixes this issue ready to check in: http://codereview.chromium.org/490028
,
Jan 4 2010
The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=35441
------------------------------------------------------------------------
r35441 | mdm@chromium.org | 2010-01-02 18:20:08 -0800 (Sat, 02 Jan 2010) | 5 lines
Changed paths:
M http://src.chromium.org/viewvc/chrome/trunk/src/base/command_line.cc?r1=35441&r2=35440
M http://src.chromium.org/viewvc/chrome/trunk/src/base/setproctitle_linux.h?r1=35441&r2=35440
M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/plugin/plugin_main.cc?r1=35441&r2=35440
Linux: use readlink() and prctl() in SetProcTitle() to fix "exe" showing in process listings.
BUG= 29118
TEST=none
Review URL: http://codereview.chromium.org/490028
------------------------------------------------------------------------
,
Jan 4 2010
,
Jan 8 2010
The following revision refers to this bug:
http://src.chromium.org/viewvc/chrome?view=rev&revision=35660
------------------------------------------------------------------------
r35660 | thestig@chromium.org | 2010-01-06 14:50:27 -0800 (Wed, 06 Jan 2010) | 8 lines
Changed paths:
M http://src.chromium.org/viewvc/chrome/branches/249/src/base/command_line.cc?r1=35660&r2=35659
M http://src.chromium.org/viewvc/chrome/branches/249/src/base/setproctitle_linux.h?r1=35660&r2=35659
M http://src.chromium.org/viewvc/chrome/branches/249/src/chrome/plugin/plugin_main.cc?r1=35660&r2=35659
Merge 35441 - Linux: use readlink() and prctl() in SetProcTitle() to fix "exe" showing in process listings.
BUG= 29118
TEST=none
Review URL: http://codereview.chromium.org/490028
TBR=mdm@chromium.org
Review URL: http://codereview.chromium.org/523106
------------------------------------------------------------------------
,
Oct 12 2012
This issue has been closed for some time. No one will pay attention to new comments. If you are seeing this bug or have new data, please click New Issue to start a new bug.
,
Mar 10 2013
,
Mar 13 2013
|
|||||||
| ► Sign in to add a comment | |||||||