summaryrefslogtreecommitdiff
path: root/pullreqd.c
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-08 19:43:10 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-08 19:43:10 -0400
commitbf6b94116fd0f55df94a846a69778f948182edbb (patch)
treeda54ee78a060925484e214be524a04f4d6bed54b /pullreqd.c
parent7edb9f992ac5e6cd5189b05ceaffad3c34e49250 (diff)
Added the `done` flag.
This flag, when true, exits the main loop, and thus exits the program.
Diffstat (limited to 'pullreqd.c')
-rw-r--r--pullreqd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pullreqd.c b/pullreqd.c
index 039b8bc..406af10 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -64,9 +64,10 @@ void init_daemon(int change_dir, char *path) {
}
int main(int argc, char **argv) {
+ int done = 0;
init_daemon(1, "/");
syslog(LOG_NOTICE, "pullreqd started.");
- for (;;) {
+ for (; !done;) {
break;
}
syslog(LOG_NOTICE, "pullreqd stopped.");