chiark / gitweb /
Reset signal-mask on re-exec to init=..
authorRuediger Oertel <ro@suse.de>
Fri, 13 Jun 2014 14:41:06 +0000 (16:41 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 16 Jun 2014 13:23:17 +0000 (15:23 +0200)
commit5a85ca1cb622fda4a39c8a6f00dccea7f8a1e82a
tree1a5aedafe3796d8d8ae921046d8c27f111324973
parent9489490a693ec5d1e3b49eecedb0ca5511568665
Reset signal-mask on re-exec to init=..

Process 1 (aka init) needs to be started with an empty signal mask.
That includes the process 1 that's started after the initrd is finished.
When the initrd is using systemd (as it does with dracut based initrds)
then it is systemd that calls the real init.  Normally this is systemd
again, except when the user uses for instance "init=/bin/bash" on the
kernel command line.
src/core/main.c