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

Side by Side Diff: services/service_manager/embedder/set_process_title_linux.h

Issue 2613653003: Move some basic early process init into Service Manager (Closed)
Patch Set: fix mac shutdown order 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_ 5 #ifndef SERVICES_SERVICE_MANAGER_EMBEDDER_SET_PROCESS_TITLE_LINUX_H_
6 #define CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_ 6 #define SERVICES_SERVICE_MANAGER_EMBEDDER_SET_PROCESS_TITLE_LINUX_H_
7 7
8 // Set the process title that will show in "ps" and similar tools. Takes 8 // Set the process title that will show in "ps" and similar tools. Takes
9 // printf-style format string and arguments. After calling setproctitle() 9 // printf-style format string and arguments. After calling setproctitle()
10 // the original main() argv[] array should not be used. By default, the 10 // the original main() argv[] array should not be used. By default, the
11 // original argv[0] is prepended to the format; this can be disabled by 11 // original argv[0] is prepended to the format; this can be disabled by
12 // including a '-' as the first character of the format string. 12 // including a '-' as the first character of the format string.
13 // 13 //
14 // This signature and naming is to be compatible with most other Unix 14 // This signature and naming is to be compatible with most other Unix
15 // implementations of setproctitle(). 15 // implementations of setproctitle().
16 void setproctitle(const char* fmt, ...); 16 void setproctitle(const char* fmt, ...);
17 17
18 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer 18 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer
19 // from main() to setproctitle_init() before calling setproctitle(). 19 // from main() to setproctitle_init() before calling setproctitle().
20 void setproctitle_init(const char** main_argv); 20 void setproctitle_init(const char** main_argv);
21 21
22 #endif // CONTENT_COMMON_SET_PROCESS_TITLE_LINUX_H_ 22 #endif // SERVICES_SERVICE_MANAGER_EMBEDDER_SET_PROCESS_TITLE_LINUX_H_
OLDNEW
« no previous file with comments | « services/service_manager/embedder/set_process_title.cc ('k') | services/service_manager/embedder/set_process_title_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698