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

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

diff -u --recursive --new-file v2.1.68/linux/drivers/sound/midi_synth.c linux/drivers/sound/midi_synth.c
@@ -526,7 +526,7 @@
 
 	sysex_sleep_flag.opts = WK_NONE;
 
-	for (i = 0; i < left && !(current->signal & ~current->blocked); i++)
+	for (i = 0; i < left && !signal_pending(current); i++)
 	  {
 		  unsigned char   data;
 
@@ -546,7 +546,7 @@
 			      }
 		    }
 		  while (!midi_devs[orig_dev]->outputc(orig_dev, (unsigned char) (data & 0xff)) &&
-			 !(current->signal & ~current->blocked))
+			 !signal_pending(current))
 
 		    {
 			    unsigned long   tlimit;

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