git: kernel - Add PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_STATUS

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Nov 15 11:45:24 PST 2020


commit acdf1ee6e01f6d399479bd25d28f8f57ff8a3ad8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Nov 15 11:41:26 2020 -0800

    kernel - Add PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_STATUS
    
    * Add PROC_PDEATHSIG_CTL and PROC_PDEATHSIG_STATUS to procctl(2).
    
      This follows the linux and freebsd semantics, however it should be noted
      that since the child of a fork() clears the setting, these semantics have
      a fork/exit race between an exiting parent and a child which has not
      yet setup its death wish.
    
    * Also fix a number of signal ranging checks.
    
    Requested-by: zrj

Summary of changes:
 lib/libc/sys/procctl.2               | 36 +++++++++++++++++++++++++++++++++---
 sys/dev/disk/iscsi/initiator/iscsi.c |  2 +-
 sys/dev/video/bktr/bktr_core.c       |  2 +-
 sys/kern/kern_exec.c                 |  4 ++++
 sys/kern/kern_exit.c                 |  8 ++++++++
 sys/kern/kern_fork.c                 | 21 ++++++++++++++++++++-
 sys/kern/kern_sig.c                  |  6 +++---
 sys/kern/sys_process.c               |  2 +-
 sys/sys/proc.h                       |  4 +++-
 sys/sys/procctl.h                    |  2 ++
 10 files changed, 76 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/acdf1ee6e01f6d399479bd25d28f8f57ff8a3ad8


-- 
DragonFly BSD source repository


More information about the Commits mailing list