diff options
author | David Turner <digit@android.com> | 2014-02-14 16:34:25 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-02-14 16:34:25 +0000 |
commit | f77bd7d005e27364e233c92ac7f6c06a18d1f128 (patch) | |
tree | c8db1d05cc309907bf66056533c1af04867f5337 | |
parent | f4c46752df57be558773a056d6545877ef65c844 (diff) | |
parent | d3d041b7d1fdb9b0cbe031a1ca0f4600beeeb546 (diff) | |
download | libhardware-f77bd7d005e27364e233c92ac7f6c06a18d1f128.tar.gz |
Merge "Try using goldfish_pipe as the device name"
-rw-r--r-- | include/hardware/qemu_pipe.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hardware/qemu_pipe.h b/include/hardware/qemu_pipe.h index 1a67022b..814b20b9 100644 --- a/include/hardware/qemu_pipe.h +++ b/include/hardware/qemu_pipe.h @@ -66,6 +66,8 @@ qemu_pipe_open(const char* pipeName) snprintf(buff, sizeof buff, "pipe:%s", pipeName); fd = open("/dev/qemu_pipe", O_RDWR); + if (fd < 0 && errno == ENOENT) + fd = open("/dev/goldfish_pipe", O_RDWR); if (fd < 0) { D("%s: Could not open /dev/qemu_pipe: %s", __FUNCTION__, strerror(errno)); //errno = ENOSYS; |