summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-12-06 23:51:34 +0000
committerRalf Baechle <ralf@linux-mips.org>1997-12-06 23:51:34 +0000
commit230e5ab6a084ed50470f101934782dbf54b0d06b (patch)
tree5dd821c8d33f450470588e7a543f74bf74306e9e /ipc
parentc9b1c8a64c6444d189856f1e26bdcb8b4cd0113a (diff)
Merge with Linux 2.1.67.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index 49d8f043f..0bf4a695e 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -136,7 +136,7 @@ static int real_msgsnd (int msqid, struct msgbuf *msgp, size_t msgsz, int msgflg
/* still no space in queue */
if (msgflg & IPC_NOWAIT)
return -EAGAIN;
- if (current->signal & ~current->blocked)
+ if (signal_pending(current))
return -EINTR;
if (in_interrupt()) {
/* Very unlikely, but better safe than sorry */
@@ -383,7 +383,7 @@ static int real_msgrcv (int msqid, struct msgbuf *msgp, size_t msgsz, long msgty
DROP_TIMER;
return -ENOMSG;
}
- if (current->signal & ~current->blocked) {
+ if (signal_pending(current)) {
DROP_TIMER;
return -EINTR;
}