patch-2.1.57 linux/drivers/char/serial.c
Next file: linux/drivers/char/stallion.c
Previous file: linux/drivers/char/rtc.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Sat Sep 20 14:51:54 1997
- Orig file:
v2.1.56/linux/drivers/char/serial.c
- Orig date:
Mon Aug 11 14:47:04 1997
diff -u --recursive --new-file v2.1.56/linux/drivers/char/serial.c linux/drivers/char/serial.c
@@ -2207,11 +2207,11 @@
if (retval)
return retval;
tty_wait_until_sent(tty, 0);
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
return -EINTR;
if (!arg) {
send_break(info, HZ/4); /* 1/4 second */
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
return -EINTR;
}
return 0;
@@ -2220,10 +2220,10 @@
if (retval)
return retval;
tty_wait_until_sent(tty, 0);
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
return -EINTR;
send_break(info, arg ? arg*(HZ/10) : HZ/4);
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
return -EINTR;
return 0;
case TIOCSBRK:
@@ -2310,7 +2310,7 @@
while (1) {
interruptible_sleep_on(&info->delta_msr_wait);
/* see if a signal did it */
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
return -ERESTARTSYS;
cli();
cnow = info->state->icount; /* atomic copy */
@@ -2562,7 +2562,7 @@
current->counter = 0; /* make us low-priority */
current->timeout = jiffies + char_time;
schedule();
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
break;
if (timeout && ((orig_jiffies + timeout) < jiffies))
break;
@@ -2709,7 +2709,7 @@
(do_clocal || (serial_in(info, UART_MSR) &
UART_MSR_DCD)))
break;
- if (current->signal & ~current->blocked) {
+ if (signal_pending(current)) {
retval = -ERESTARTSYS;
break;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov