From 6a644394ec589f50a0536a76a82e069dbe5907ed Mon Sep 17 00:00:00 2001 From: reinelt Date: Wed, 25 Oct 2000 08:10:48 +0000 Subject: [lcd4linux @ 2000-10-25 08:10:48 by reinelt] added restart funnctionality (lots of this code was stolen from sendmail.c) git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@68 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- lcd4linux.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 55 insertions(+), 10 deletions(-) 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