summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2014-03-07 19:34:37 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-07 19:34:37 +0000
commit222f19d560304712474c6db34a10497b43efe864 (patch)
treef57e0a37f0aaa2cd04c5e967d3c94f8a4827d19a
parentcc03474bc0927d5b9ee3fb518861b2d885253933 (diff)
parentf77bd7d005e27364e233c92ac7f6c06a18d1f128 (diff)
downloadlibhardware-222f19d560304712474c6db34a10497b43efe864.tar.gz
am f77bd7d0: Merge "Try using goldfish_pipe as the device name"
* commit 'f77bd7d005e27364e233c92ac7f6c06a18d1f128': Try using goldfish_pipe as the device name
-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;