Diff for /linux/kernel/signal.c between versions 1.1.1.6 and 1.1.1.7

version 1.1.1.6, 2018/04/24 18:09:48 version 1.1.1.7, 2018/04/24 18:13:11
Line 1 Line 1
 /*  /*
  *  linux/kernel/signal.c   *  linux/kernel/signal.c
  *   *
  *  (C) 1991  Linus Torvalds   *  Copyright (C) 1991, 1992  Linus Torvalds
  */   */
   
 #include <linux/sched.h>  #include <linux/sched.h>
 #include <linux/kernel.h>  #include <linux/kernel.h>
 #include <asm/segment.h>  #include <linux/signal.h>
   #include <linux/errno.h>
   #include <linux/wait.h>
   #include <linux/ptrace.h>
   
 #include <signal.h>  #include <asm/segment.h>
 #include <sys/wait.h>  
 #include <sys/ptrace.h>  
 #include <errno.h>  
   
 extern int core_dump(long signr,struct pt_regs * regs);  extern int core_dump(long signr,struct pt_regs * regs);
   
Line 122  int sys_sigaction(int signum, const stru Line 122  int sys_sigaction(int signum, const stru
   
 extern int sys_waitpid(pid_t pid,unsigned long * stat_addr, int options);  extern int sys_waitpid(pid_t pid,unsigned long * stat_addr, int options);
   
   /*
    * Note that 'init' is a special process: it doesn't get signals it doesn't
    * want to handle. Thus you cannot kill init even with a SIGKILL even by
    * mistake.
    */
 int do_signal(long signr,struct pt_regs * regs)  int do_signal(long signr,struct pt_regs * regs)
 {  {
         unsigned long sa_handler;          unsigned long sa_handler;
Line 154  int do_signal(long signr,struct pt_regs  Line 159  int do_signal(long signr,struct pt_regs 
                 return(1);   /* Ignore, see if there are more signals... */                  return(1);   /* Ignore, see if there are more signals... */
         }          }
         if (!sa_handler) {          if (!sa_handler) {
                   if (current->pid == 1)
                           return 1;
                 switch (signr) {                  switch (signr) {
                 case SIGCONT:                  case SIGCONT:
                 case SIGCHLD:                  case SIGCHLD:

Removed from v.1.1.1.6  
changed lines
  Added in v.1.1.1.7


unix.superglobalmegacorp.com