diff --git a/lcd4linux.c b/lcd4linux.c index d50c09d..de971eb 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -1,4 +1,4 @@ -/* $Id: lcd4linux.c,v 1.27 2000/08/10 18:42:20 reinelt Exp $ +/* $Id: lcd4linux.c,v 1.28 2000/10/25 08:10:48 reinelt Exp $ * * LCD4Linux * @@ -20,6 +20,11 @@ * * * $Log: lcd4linux.c,v $ + * Revision 1.28 2000/10/25 08:10:48 reinelt + * + * added restart funnctionality + * (lots of this code was stolen from sendmail.c) + * * Revision 1.27 2000/08/10 18:42:20 reinelt * * fixed some bugs with the new syslog code @@ -158,6 +163,8 @@ #include #include #include +#include +#include #include #include @@ -168,6 +175,7 @@ #include "processor.h" char *release="LCD4Linux " VERSION " (c) 2000 Michael Reinelt "; +char **my_argv; char *output=NULL; int got_signal=0; int debugging=1; @@ -248,6 +256,13 @@ int main (int argc, char *argv[]) int c, smooth; int quiet=0; + // save arguments for restart + my_argv=malloc(sizeof(char*)*(argc+1)); + for (c=0; c