Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-15 | Added include for `strings.h`. | mrb0nk500 | |
This is because `strcasecmp()` is technically in `strings.h`, rather than `string.h`. | |||
2021-06-13 | Added the `repos` parameter to both `main_loop()`, and | mrb0nk500 | |
`cleanup()`, and also call the git initialization code in the main program. | |||
2021-06-13 | Include `git.h` in `pullreqd.c`. | mrb0nk500 | |
Also added the necessary externs. | |||
2021-06-12 | Remove unecessary includes. | mrb0nk500 | |
This is because I now have these includes in `network.h`. | |||
2021-06-12 | Expanded all instances of `did_fail`, and | mrb0nk500 | |
`did_fail_reason`. I also replaced all instances of `log` in the expanded `did_fail_reason` instances with `log_reason`. | |||
2021-06-12 | Replaced all log messages with the macros from | mrb0nk500 | |
`macros.h`. This was done not only to make it smaller, and easier to read, but also to make it easier for debugging. | |||
2021-06-11 | Replace `!` with `== 0` for all calls to | mrb0nk500 | |
`strcasecmp()`. This was done to make it more readable. | |||
2021-06-11 | Change `port` from an int to a string, and move the | mrb0nk500 | |
valid port check into the config parser. | |||
2021-06-11 | Added failure reasons to all the failure log messages | mrb0nk500 | |
in `init_socket()`. | |||
2021-06-10 | Changed `fd` to a `const int`, and added a failed | mrb0nk500 | |
socket creation reason in `init_socket()`. | |||
2021-06-10 | Fixed a typo in `init_socket()`. | mrb0nk500 | |
Accidentally used `sprintf()`, instead of `snprintf()`. | |||
2021-06-10 | Finished `init_socket()`. | mrb0nk500 | |
2021-06-10 | Added the include for `netdb.h`. | mrb0nk500 | |
2021-06-10 | Added the `cleanup()`, and `cleanup_config()` | mrb0nk500 | |
functions. | |||
2021-06-09 | Added the socket, and network includes. | mrb0nk500 | |
Forgot to add them. oof | |||
2021-06-09 | Started work on adding the socket initialization code. | mrb0nk500 | |
2021-06-09 | Moved the main loop into a separate function. | mrb0nk500 | |
2021-06-09 | Move the main loop code into an if statement. | mrb0nk500 | |
This was done to make it easier to understand what's going on. | |||
2021-06-08 | Fixed a typo in `init_config()`. | mrb0nk500 | |
2021-06-08 | Include `config.h` in `pullreqd.c`. | mrb0nk500 | |
I forgot to add it. oof | |||
2021-06-08 | Added the config file initialization code. | mrb0nk500 | |
2021-06-08 | Added 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-08 | Added the `done` flag. | mrb0nk500 | |
This flag, when true, exits the main loop, and thus exits the program. | |||
2021-06-05 | Fixed a typo in the root fallback code. | mrb0nk500 | |
Thanks goes to Nova Forte for pointing it out to me. | |||
2021-06-04 | Fixed a typo with the `init_daemon()` call in | mrb0nk500 | |
`main()`. | |||
2021-06-04 | Fixed a typo in `pullreqd.c`. | mrb0nk500 | |
2021-06-04 | Added the main function. | mrb0nk500 | |
2021-06-04 | Added `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-04 | Added `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-04 | Added `child_handler()`. | mrb0nk500 | |
Which is the handler for SIGCHLD. Currently, it's a stub. | |||
2021-06-04 | Added `fork_proc()`. | mrb0nk500 | |
Which handles forking a process, aswell as exiting the parent process. | |||
2021-06-04 | Created `pullreqd.c`. | mrb0nk500 | |