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

Side by Side Diff: handler/win/crashy_test_program.cc

Issue 1413033007: mac: Restart crashpad_handler from the initial client if it dies (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: is_valid() Created 5 years, 1 month 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
« no previous file with comments | « client/crashpad_client_win.cc ('k') | tools/mac/run_with_crashpad.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 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 if (argc == 2) { 99 if (argc == 2) {
100 if (!client.SetHandlerIPCPipe(argv[1])) { 100 if (!client.SetHandlerIPCPipe(argv[1])) {
101 LOG(ERROR) << "SetHandler"; 101 LOG(ERROR) << "SetHandler";
102 return EXIT_FAILURE; 102 return EXIT_FAILURE;
103 } 103 }
104 } else if (argc == 3) { 104 } else if (argc == 3) {
105 if (!client.StartHandler(base::FilePath(argv[1]), 105 if (!client.StartHandler(base::FilePath(argv[1]),
106 base::FilePath(argv[2]), 106 base::FilePath(argv[2]),
107 std::string(), 107 std::string(),
108 std::map<std::string, std::string>(), 108 std::map<std::string, std::string>(),
109 std::vector<std::string>())) { 109 std::vector<std::string>(),
110 false)) {
110 LOG(ERROR) << "StartHandler"; 111 LOG(ERROR) << "StartHandler";
111 return EXIT_FAILURE; 112 return EXIT_FAILURE;
112 } 113 }
113 } else { 114 } else {
114 fprintf(stderr, "Usage: %s <server_pipe_name>\n", argv[0]); 115 fprintf(stderr, "Usage: %s <server_pipe_name>\n", argv[0]);
115 fprintf(stderr, " %s <handler_path> <database_path>\n", argv[0]); 116 fprintf(stderr, " %s <handler_path> <database_path>\n", argv[0]);
116 return EXIT_FAILURE; 117 return EXIT_FAILURE;
117 } 118 }
118 119
119 if (!client.UseHandler()) { 120 if (!client.UseHandler()) {
(...skipping 12 matching lines...) Expand all
132 133
133 return EXIT_SUCCESS; 134 return EXIT_SUCCESS;
134 } 135 }
135 136
136 } // namespace 137 } // namespace
137 } // namespace crashpad 138 } // namespace crashpad
138 139
139 int wmain(int argc, wchar_t* argv[]) { 140 int wmain(int argc, wchar_t* argv[]) {
140 return crashpad::CrashyMain(argc, argv); 141 return crashpad::CrashyMain(argc, argv);
141 } 142 }
OLDNEW
« no previous file with comments | « client/crashpad_client_win.cc ('k') | tools/mac/run_with_crashpad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698