tmp
This commit is contained in:
parent
dc45257deb
commit
2d47319c07
1 changed files with 17 additions and 2 deletions
|
@ -1,9 +1,24 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <linux/fs.h>
|
||||||
|
#include <linux/limits.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int _daemon (int, int);
|
// int _daemon (int, int);
|
||||||
|
|
||||||
int main(){
|
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();
|
getchar();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in a new issue