add some TODOs
This commit is contained in:
@ -4,7 +4,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
/* Setup daemon */
|
/*
|
||||||
|
Setup daemon
|
||||||
|
Used this for basic idea => https://en.wikipedia.org/wiki/Daemon_(computing)
|
||||||
|
*/
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
pid_t sid;
|
pid_t sid;
|
||||||
|
|
||||||
@ -30,6 +33,9 @@ int main() {
|
|||||||
close(STDOUT_FILENO);
|
close(STDOUT_FILENO);
|
||||||
close(STDERR_FILENO);
|
close(STDERR_FILENO);
|
||||||
|
|
||||||
|
/* TODO: Setup HTTP server */
|
||||||
|
/* TODO: API needed */
|
||||||
|
|
||||||
/* Actual program */
|
/* Actual program */
|
||||||
char should_close = 0;
|
char should_close = 0;
|
||||||
while(!should_close) {
|
while(!should_close) {
|
||||||
|
Reference in New Issue
Block a user