aboutsummaryrefslogtreecommitdiff
path: root/src/potd-init.c
blob: 8cfb347846979e201d03726d440f5c0efde14cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>

#define APP_NAME "init"

int main(void)
{
    if (getppid() != 0 || getpid() != 1) {
        fprintf(stderr, "%s: must be started as PID 1\n", APP_NAME);
        return 1;
    }

    return 0;
}