patch-2.1.81 linux/drivers/char/ftape/lowlevel/ftape-rw.c

Next file: linux/drivers/char/ftape/lowlevel/ftape-tracing.h
Previous file: linux/drivers/char/ftape/lowlevel/ftape-init.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.80/linux/drivers/char/ftape/lowlevel/ftape-rw.c linux/drivers/char/ftape/lowlevel/ftape-rw.c
@@ -432,7 +432,8 @@
 			 */
 			result = ftape_ready_wait(ftape_timeout.pause,&status);
 		}
-	} while (ftape_tape_running && (current->signal & _NEVER_BLOCK) == 0);
+	} while (ftape_tape_running
+		 && !(sigtestsetmask(&current->signal, _NEVER_BLOCK)));
 #ifndef TESTING
 	ft_location.known = 0;
 #endif
@@ -660,7 +661,7 @@
 		 *  to find a way to skip an EMPTY_SEGMENT. !!! FIXME !!!
 		 */
 		if (ftape_read_id() < 0 || !ft_location.known ||
-		    (current->signal & _DONT_BLOCK)) {
+		    sigtestsetmask(&current->signal, _DONT_BLOCK)) {
 			ft_location.known = 0;
 			if (!ftape_tape_running ||
 			    ++failures > FT_SECTORS_PER_SEGMENT) {
@@ -775,7 +776,7 @@
 		fast_seek(count, 1);
 		logical_forward();
 		if (ftape_read_id() < 0 || !ft_location.known ||
-		    (current->signal & _DONT_BLOCK)) {
+		    (sigtestsetmask(&current->signal, _DONT_BLOCK))) {
 			if ((!ftape_tape_running && !ft_location.known) ||
 			    ++failures > FT_SECTORS_PER_SEGMENT) {
 				TRACE_ABORT(-EIO, ft_t_err,
@@ -1001,7 +1002,7 @@
 	while (result < 0     &&
 	       retry++ <= 5   &&
 	       !ft_failure &&
-	       (current->signal & _DONT_BLOCK) == 0) {
+	       !(sigtestsetmask(&current->signal, _DONT_BLOCK))) {
 		
 		if (retry && start_offset < 5) {
 			start_offset ++;

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