git: mini_init: Don't call exit(3), catch SIGTERM

Francois Tigeot ftigeot at crater.dragonflybsd.org
Wed Apr 9 13:24:17 PDT 2014


commit 0a6762a2b6ea19ae94b21ad2a3718aa97180dd16
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Wed Apr 9 12:54:23 2014 +0200

    mini_init: Don't call exit(3), catch SIGTERM
    
    * During a reboot sequence, all processes are routinely killed.
    
    * Sadly, if init dies, the kernel panics.
    
    * Try to avoid this situation by ignoring SIGTERM and not explicitely
      calling exit(3) if the child process dies and the chrooting sequence
      fails.

Summary of changes:
 share/initrd/mini_init/oinit.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0a6762a2b6ea19ae94b21ad2a3718aa97180dd16


-- 
DragonFly BSD source repository



More information about the Commits mailing list