svn commit: r352044 - stable/12/sys/dev/sound/midi

Mark Johnston markj at FreeBSD.org
Sun Sep 8 20:42:28 UTC 2019


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
 			/*


More information about the svn-src-stable-12 mailing list