diff --git a/c-daemon/daemon/test.c b/c-daemon/daemon/test.c index bfcefa3..c65dd89 100644 --- a/c-daemon/daemon/test.c +++ b/c-daemon/daemon/test.c @@ -1,9 +1,24 @@ +#include +#include +#include +#include +#include +#include +#include +#include #include -int _daemon (int, int); +// int _daemon (int, int); int main(){ - _daemon(0, 0); + // _daemon(0, 0); + while (1) { + int status = system("/usr/lib/cdaemontmp/info"); + // TODO SECURITY ISSUE + // LINK https://stackoverflow.com/questions/5237482/how-do-i-execute-an-external-program-within-c-code-in-linux-with-arguments# + + sleep(1); + } getchar(); return 0; } \ No newline at end of file