synk

synchronize files between hosts
Log | Files | Refs | README | LICENSE

commit a5fa976251072410375f2466833bef081e496846
parent 9453df688994798aebaffc745559c95dd492ebba
Author: Willy <willyatmailoodotorg>
Date:   Sun Sep  4 00:55:17 +0200

Wait for child processes before returning

Diffstat:
synk.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/synk.c b/synk.c @@ -12,6 +12,7 @@ #include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> +#include <sys/wait.h> #include "arg.h" #include "sha512.h" @@ -521,6 +522,8 @@ syncfile(struct peers_t *plist, const char *fn) flushpeers(plist); free(local); + wait(NULL); + return ret; }