diff options
Diffstat (limited to 'src/plymouthd-fd-escrow.c')
-rw-r--r-- | src/plymouthd-fd-escrow.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plymouthd-fd-escrow.c b/src/plymouthd-fd-escrow.c new file mode 100644 index 00000000..89ec5b68 --- /dev/null +++ b/src/plymouthd-fd-escrow.c @@ -0,0 +1,18 @@ +#include <signal.h> +#include <unistd.h> + +int +main(int argc, char **argv) +{ + signal (SIGTERM, SIG_IGN); + + /* Make the first byte in argv be '@' so that we can survive systemd's killing + * spree until the power is killed at shutdown. + * http://www.freedesktop.org/wiki/Software/systemd/RootStorageDaemons + */ + argv[0][0] = '@'; + + while (pause()); + + return 0; +} |