X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=init-ng.c;h=7dba91aeb3aa375fcbad2410753ba6928d9733c1;hb=HEAD;hp=d161b844b71a08e8f3f5fa177cc2de222161d1ab;hpb=46dec5a0c30b1b970bc2767b26e8577b3770e5b3;p=init-ng diff --git a/init-ng.c b/init-ng.c index d161b84..7dba91a 100644 --- a/init-ng.c +++ b/init-ng.c @@ -10,7 +10,6 @@ // (C) 2017 Underground Software // -#define _DEFAULT_SOURCE // Without this, functions in unistd.h go missing #include #include #include @@ -19,12 +18,12 @@ #include #include #include -#include +#include #include #include #include -static const char socketPath[] = "/run/initctl"; +static const char fifoPath[] = "/dev/initctl"; static int shuttingDown = 0; static int verbose = 0; // N.B.: There is no mechanism to set this ATM static struct sigaction action; @@ -39,7 +38,7 @@ static char * args[256]; // 256 arguments ought to be enough for anybody ;-) // Find a process in the monitored process list (MPL) by PID. Returns the index // of the entry in the MPL. // -int FindMonitoredPID(pid_t pid) +static int FindMonitoredPID(pid_t pid) { for(int i=0; i