Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: base/setproctitle_linux.h

Issue 523106: Merge 35441 - Linux: use readlink() and prctl() in SetProcTitle() to fix "exe... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/command_line.cc ('k') | chrome/plugin/plugin_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_SETPROCTITLE_LINUX_H_ 5 #ifndef BASE_SETPROCTITLE_LINUX_H_
6 #define BASE_SETPROCTITLE_LINUX_H_ 6 #define BASE_SETPROCTITLE_LINUX_H_
7 7
8 #ifdef __cplusplus 8 #ifdef __cplusplus
9 extern "C" { 9 extern "C" {
10 #endif 10 #endif
11 11
12 // Set the process title that will show in "ps" and similar tools. Takes 12 // Set the process title that will show in "ps" and similar tools. Takes
13 // printf-style format string and arguments. After calling setproctitle() 13 // printf-style format string and arguments. After calling setproctitle()
14 // the original main() argv[] array should not be used. 14 // the original main() argv[] array should not be used. By default, the
15 // original argv[0] is prepended to the format; this can be disabled by
16 // including a '-' as the first character of the format string.
15 void setproctitle(const char* fmt, ...); 17 void setproctitle(const char* fmt, ...);
16 18
17 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer 19 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer
18 // from main() to setproctitle_init() before calling setproctitle(). 20 // from main() to setproctitle_init() before calling setproctitle().
19 void setproctitle_init(char** main_argv); 21 void setproctitle_init(char** main_argv);
20 22
21 #ifdef __cplusplus 23 #ifdef __cplusplus
22 } 24 }
23 #endif 25 #endif
24 26
25 #endif // BASE_SETPROCTITLE_LINUX_H_ 27 #endif // BASE_SETPROCTITLE_LINUX_H_
OLDNEW
« no previous file with comments | « base/command_line.cc ('k') | chrome/plugin/plugin_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698