| Index: testing/android/native_test_launcher.cc
|
| diff --git a/testing/android/native_test_launcher.cc b/testing/android/native_test_launcher.cc
|
| index 99d9b29b47120badde0f33efb68fb86fd04fb0e9..ade30b2758d99ea781f1282033631d22f426447f 100644
|
| --- a/testing/android/native_test_launcher.cc
|
| +++ b/testing/android/native_test_launcher.cc
|
| @@ -118,7 +118,8 @@ int ArgsToArgv(const std::vector<std::string>& args,
|
|
|
| void CreateFIFO(const char* fifo_path) {
|
| unlink(fifo_path);
|
| - if (mkfifo(fifo_path, 0666)) {
|
| + // Default permissions for mkfifo is ignored, chmod is required.
|
| + if (mkfifo(fifo_path, 0666) || chmod(fifo_path, 0666)) {
|
| AndroidLogError("Failed to create fifo %s: %s\n",
|
| fifo_path, strerror(errno));
|
| exit(EXIT_FAILURE);
|
|
|