[PATCH 4/5] update_info_file(): use fdopen_with_retry()
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
---
server-info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server-info.c b/server-info.c
index 34b0253..8c6f662 100644
--- a/server-info.c
+++ b/server-info.c
@@ -20,7 +20,7 @@ static int update_info_file(char *path, int (*generate)(FILE *))
fd = git_mkstemp_mode(tmp, 0666);
if (fd < 0)
goto out;
- fp = fdopen(fd, "w");
+ fp = fdopen_with_retry(fd, "w");
if (!fp)
goto out;
ret = generate(fp);
--
2.1.4