summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctavian Purdila <octavian.purdila@intel.com>2013-11-06 19:38:31 +0200
committerJun Tian <jun.j.tian@intel.com>2014-01-29 18:03:04 +0800
commitd3d041b7d1fdb9b0cbe031a1ca0f4600beeeb546 (patch)
treef2a2e779c6d016d28fb2fe92a2d6d100a46d9da3
parentaea8c156649c16347514741eb084858cdb458b75 (diff)
downloadlibhardware-d3d041b7d1fdb9b0cbe031a1ca0f4600beeeb546.tar.gz
Try using goldfish_pipe as the device name
The upstream goldfish_pipe driver uses goldfish_pipe as a name instead of qemu_pipe. Try using this name if the old name (qemu_pipe) fails. For: ABIT-15 Change-Id: I8c6178faf27b1cdb31cc4343cf1af396e929f7e4 Signed-off-by: Octavian Purdila <octavian.purdila@intel.com> Signed-off-by: Jun Tian <jun.j.tian@intel.com>
-rw-r--r--include/hardware/qemu_pipe.h2
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;