Date: Mon, 23 Mar 2015 11:47:02 +0000 (UTC) From: Jakub Wojciech Klama <jceel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r280362 - user/jceel/soc2014_evdev/head/sys/dev/evdev Message-ID: <201503231147.t2NBl2Uo024744@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jceel Date: Mon Mar 23 11:47:01 2015 New Revision: 280362 URL: https://svnweb.freebsd.org/changeset/base/280362 Log: Add PCATCH to mtx_sleep() so it can be interrupted. Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c ============================================================================== --- user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Mon Mar 23 03:43:59 2015 (r280361) +++ user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Mon Mar 23 11:47:01 2015 (r280362) @@ -186,7 +186,7 @@ evdev_read(struct cdev *dev, struct uio return (EWOULDBLOCK); } - mtx_sleep(client, &client->ec_buffer_mtx, 0, "evrea", 0); + mtx_sleep(client, &client->ec_buffer_mtx, PCATCH, "evrea", 0); } for (;;) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503231147.t2NBl2Uo024744>