Date: Sun, 8 Sep 2019 20:42:28 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r352044 - stable/12/sys/dev/sound/midi Message-ID: <201909082042.x88KgS5F040161@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sun Sep 8 20:42:28 2019 New Revision: 352044 URL: https://svnweb.freebsd.org/changeset/base/352044 Log: MFC r351624: Properly check for an interrupted cv_wait_sig(). Modified: stable/12/sys/dev/sound/midi/sequencer.c Directory Properties: stable/12/ (props changed) Modified: stable/12/sys/dev/sound/midi/sequencer.c ============================================================================== --- stable/12/sys/dev/sound/midi/sequencer.c Sun Sep 8 20:42:01 2019 (r352043) +++ stable/12/sys/dev/sound/midi/sequencer.c Sun Sep 8 20:42:28 2019 (r352044) @@ -912,7 +912,7 @@ mseq_read(struct cdev *i_dev, struct uio *uio, int iof goto err1; retval = cv_wait_sig(&scp->in_cv, &scp->seq_lock); - if (retval == EINTR) + if (retval != 0) goto err1; } @@ -977,7 +977,7 @@ mseq_write(struct cdev *i_dev, struct uio *uio, int io * We slept, maybe things have changed since last * dying check */ - if (retval == EINTR) + if (retval != 0) goto err0; #if 0 /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909082042.x88KgS5F040161>