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

Unified Diff: base/setproctitle_linux.h

Issue 196009: Linux: set the process title (that shows in "ps" etc.) of renderers correctly when using the zygote. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/command_line.cc ('k') | base/setproctitle_linux.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/setproctitle_linux.h
===================================================================
--- base/setproctitle_linux.h (revision 0)
+++ base/setproctitle_linux.h (revision 0)
@@ -0,0 +1,25 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_SETPROCTITLE_LINUX_H_
+#define BASE_SETPROCTITLE_LINUX_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// Set the process title that will show in "ps" and similar tools. Takes
+// printf-style format string and arguments. After calling setproctitle()
+// the original main() argv[] array should not be used.
+void setproctitle(const char* fmt, ...);
+
+// Initialize state needed for setproctitle() on Linux. Pass the argv pointer
+// from main() to setproctitle_init() before calling setproctitle().
+void setproctitle_init(char** main_argv);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // BASE_SETPROCTITLE_LINUX_H_
Property changes on: base/setproctitle_linux.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « base/command_line.cc ('k') | base/setproctitle_linux.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698