OLD | NEW |
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 #include "update_engine/subprocess.h" | 5 #include "update_engine/subprocess.h" |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <string.h> | 7 #include <string.h> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include "chromeos/obsolete_logging.h" | 10 #include "base/logging.h" |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 | 13 |
14 using std::string; | 14 using std::string; |
15 using std::vector; | 15 using std::vector; |
16 | 16 |
17 namespace chromeos_update_engine { | 17 namespace chromeos_update_engine { |
18 | 18 |
19 void Subprocess::GChildExitedCallback(GPid pid, gint status, gpointer data) { | 19 void Subprocess::GChildExitedCallback(GPid pid, gint status, gpointer data) { |
20 COMPILE_ASSERT(sizeof(guint) == sizeof(uint32_t), | 20 COMPILE_ASSERT(sizeof(guint) == sizeof(uint32_t), |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 if (child_stdout) | 142 if (child_stdout) |
143 LOG(INFO) << "Postinst stdout:" << child_stdout; | 143 LOG(INFO) << "Postinst stdout:" << child_stdout; |
144 if (child_stderr) | 144 if (child_stderr) |
145 LOG(INFO) << "Postinst stderr:" << child_stderr; | 145 LOG(INFO) << "Postinst stderr:" << child_stderr; |
146 return success; | 146 return success; |
147 } | 147 } |
148 | 148 |
149 Subprocess* Subprocess::subprocess_singleton_ = NULL; | 149 Subprocess* Subprocess::subprocess_singleton_ = NULL; |
150 | 150 |
151 } // namespace chromeos_update_engine | 151 } // namespace chromeos_update_engine |
OLD | NEW |