diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-08 19:43:10 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-08 19:43:10 -0400 |
commit | bf6b94116fd0f55df94a846a69778f948182edbb (patch) | |
tree | da54ee78a060925484e214be524a04f4d6bed54b /pullreqd.c | |
parent | 7edb9f992ac5e6cd5189b05ceaffad3c34e49250 (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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."); |