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

Next file: linux/fs/autofs/root.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.56/linux/drivers/sound/sequencer.c linux/drivers/sound/sequencer.c
@@ -1227,7 +1227,7 @@
 
   n = 1;
 
-  while (!(current->signal & ~current->blocked) && n)
+  while (!signal_pending(current) && n)
     {
       n = 0;
 
@@ -1279,7 +1279,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 ();
 
@@ -1344,7 +1344,7 @@
 {
   unsigned long   flags;
 
-  if (qlen && !seq_playing && !(current->signal & ~current->blocked))
+  if (qlen && !seq_playing && !signal_pending(current))
     seq_startplay ();
 
   save_flags (flags);
@@ -1572,7 +1572,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