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

Francois Tigeot ftigeot at
Wed Apr 9 13:24:17 PDT 2014

commit 0a6762a2b6ea19ae94b21ad2a3718aa97180dd16
Author: François Tigeot <ftigeot at>
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

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

DragonFly BSD source repository

More information about the Commits mailing list