From 2d47319c07cec5ce7b5f1b9d997f1387b4cf3189 Mon Sep 17 00:00:00 2001 From: asandikci Date: Thu, 27 Jul 2023 13:02:32 +0300 Subject: [PATCH] tmp --- c-daemon/daemon/test.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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