summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2011-01-13 11:53:07 -0500
committerChase Douglas <chase.douglas@canonical.com>2011-01-13 11:53:07 -0500
commit8a4e557c27a354c6a17953eb33312d85dec16f3b (patch)
treed6e75ebafa427aea0e6198adc15f9b4c3b1c405f
parentecd4106f77dd755cb39ffca1440804641e4c80a9 (diff)
Don't grab device in mtdev caseHEADtest
With the grab it is impossible to run two mtdev mtviews at the same time.
-rw-r--r--tools/mtview.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/mtview.c b/tools/mtview.c
index e739d78..0420c05 100644
--- a/tools/mtview.c
+++ b/tools/mtview.c
@@ -238,10 +238,6 @@ static int run_mtdev(const char *name)
fprintf(stderr, "error: could not open device\n");
return -1;
}
- if (ioctl(fd, EVIOCGRAB, 1)) {
- fprintf(stderr, "error: could not grab the device\n");
- return -1;
- }
evemu = evemu_new(0);
if (!evemu || evemu_extract(evemu, fd)) {