patch-2.1.57 linux/drivers/char/lp_m68k.c

Next file: linux/drivers/char/n_tty.c
Previous file: linux/drivers/char/lp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.56/linux/drivers/char/lp_m68k.c linux/drivers/char/lp_m68k.c
@@ -222,7 +222,7 @@
       lp_table[dev]->do_print = 0;
       rc = total_bytes_written + lp_table[dev]->bytes_written;
 
-      if (current->signal & ~current->blocked) {
+      if (signal_pending(current)) {
 	if (rc)
 	  return rc;
 	else
@@ -320,7 +320,7 @@
 			}
 
 			/* check for signals before going to sleep */
-			if (current->signal & ~current->blocked) {
+			if (signal_pending(current)) {
 				if (temp != buf)
 					return temp-buf;
 				else

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