patch-2.1.69 linux/drivers/sound/sequencer.c

Next file: linux/drivers/sound/sound_firmware.c
Previous file: linux/drivers/sound/midibuf.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.68/linux/drivers/sound/sequencer.c linux/drivers/sound/sequencer.c
@@ -1219,7 +1219,7 @@
 
 	n = 1;
 
-	while (!(current->signal & ~current->blocked) && n)
+	while (!signal_pending(current) && n)
 	  {
 		  n = 0;
 
@@ -1271,7 +1271,7 @@
 
 	if (mode != OPEN_READ && !(file->flags & (O_NONBLOCK) ?
 				   1 : 0))
-		while (!(current->signal & ~current->blocked) && qlen > 0)
+		while (!signal_pending(current) && qlen > 0)
 		  {
 			  seq_sync();
 
@@ -1335,7 +1335,7 @@
 {
 	unsigned long   flags;
 
-	if (qlen && !seq_playing && !(current->signal & ~current->blocked))
+	if (qlen && !seq_playing && !signal_pending(current))
 		seq_startplay();
 
 	save_flags(flags);
@@ -1563,7 +1563,7 @@
 
 		  if (mode == OPEN_READ)
 			  return 0;
-		  while (qlen > 0 && !(current->signal & ~current->blocked))
+		  while (qlen > 0 && !signal_pending(current))
 			  seq_sync();
 		  if (qlen)
 			  return -EINTR;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov