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

Unified Diff: content/common/set_process_title_linux.h

Issue 2763883002: Revert of Move some basic early process init into Service Manager (Closed)
Patch Set: Created 3 years, 9 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 | « content/common/set_process_title.cc ('k') | content/common/set_process_title_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/set_process_title_linux.h
diff --git a/content/common/set_process_title_linux.h b/content/common/set_process_title_linux.h
new file mode 100644
index 0000000000000000000000000000000000000000..d72a7b6ccac67f6e9589b1e1f2b09aea623cc6c6
--- /dev/null
+++ b/content/common/set_process_title_linux.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2012 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 CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_
+#define CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_
+
+// 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. By default, the
+// original argv[0] is prepended to the format; this can be disabled by
+// including a '-' as the first character of the format string.
+//
+// This signature and naming is to be compatible with most other Unix
+// implementations of setproctitle().
+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(const char** main_argv);
+
+#endif // CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_
« no previous file with comments | « content/common/set_process_title.cc ('k') | content/common/set_process_title_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698