patch-2.0.1 linux/arch/i386/kernel/signal.c
Next file: linux/drivers/block/README.md
Previous file: linux/arch/i386/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue Jul 2 19:08:34 1996
- Orig file:
v2.0.0/linux/arch/i386/kernel/signal.c
- Orig date:
Tue May 7 16:22:17 1996
diff -u --recursive --new-file v2.0.0/linux/arch/i386/kernel/signal.c linux/arch/i386/kernel/signal.c
@@ -248,7 +248,8 @@
if (sa->sa_flags & SA_ONESHOT)
sa->sa_handler = NULL;
- current->blocked |= sa->sa_mask;
+ if (!(sa->sa_flags & SA_NOMASK))
+ current->blocked |= (sa->sa_mask | _S(signr)) & _BLOCKABLE;
}
/*
@@ -310,7 +311,10 @@
case SIGCONT: case SIGCHLD: case SIGWINCH:
continue;
- case SIGSTOP: case SIGTSTP: case SIGTTIN: case SIGTTOU:
+ case SIGTSTP: case SIGTTIN: case SIGTTOU:
+ if (is_orphaned_pgrp(current->pgrp))
+ continue;
+ case SIGSTOP:
if (current->flags & PF_PTRACED)
continue;
current->state = TASK_STOPPED;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov