summaryrefslogtreecommitdiff
path: root/src/plymouthd-fd-escrow.c
blob: 89ec5b687bdd918437205e4671a68fc0afcaf147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}