summaryrefslogtreecommitdiff
path: root/pullreqd.c
AgeCommit message (Collapse)Author
2021-06-10Added the `cleanup()`, and `cleanup_config()`mrb0nk500
functions.
2021-06-09Added the socket, and network includes.mrb0nk500
Forgot to add them. oof
2021-06-09Started work on adding the socket initialization code.mrb0nk500
2021-06-09Moved the main loop into a separate function.mrb0nk500
2021-06-09Move the main loop code into an if statement.mrb0nk500
This was done to make it easier to understand what's going on.
2021-06-08Fixed a typo in `init_config()`.mrb0nk500
2021-06-08Include `config.h` in `pullreqd.c`.mrb0nk500
I forgot to add it. oof
2021-06-08Added the config file initialization code.mrb0nk500
2021-06-08Added the `init_config()` function.mrb0nk500
This function reads the config file supplied by `config_file`, and initialize the `config *` supplied by `cfg` accordingly. `init_config()` returns true if the config file was successfully read, otherwise, it returns false.
2021-06-08Added the `done` flag.mrb0nk500
This flag, when true, exits the main loop, and thus exits the program.
2021-06-05Fixed a typo in the root fallback code.mrb0nk500
Thanks goes to Nova Forte for pointing it out to me.
2021-06-04Fixed a typo with the `init_daemon()` call inmrb0nk500
`main()`.
2021-06-04Fixed a typo in `pullreqd.c`.mrb0nk500
2021-06-04Added the main function.mrb0nk500
2021-06-04Added `init_daemon()`.mrb0nk500
Which actually initiallizes, and starts the daemon. If `change_dir` is true, it will change the working directory to `path`, or the root directory if `path` is NULL.
2021-06-04Added `hangup_hander()`.mrb0nk500
Which is the same as `child_handler()`, but for SIGHUP. And just like `child_handler()`, it's also currently a stub.
2021-06-04Added `child_handler()`.mrb0nk500
Which is the handler for SIGCHLD. Currently, it's a stub.
2021-06-04Added `fork_proc()`.mrb0nk500
Which handles forking a process, aswell as exiting the parent process.
2021-06-04Created `pullreqd.c`.mrb0nk500