aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-01-31 06:09:06 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-01-31 06:09:06 +0000
commitc70d8528fccd50a8af1843e6c8e0da43f56f1f35 (patch)
tree1f6ac62e48f81a9971fe43f5ca47d7c2baca6be0 /fetchmail.c
parent42a5271a91208b49b2440bcd5a6367e6bc4f00e4 (diff)
downloadfetchmail-c70d8528fccd50a8af1843e6c8e0da43f56f1f35.tar.gz
fetchmail-c70d8528fccd50a8af1843e6c8e0da43f56f1f35.tar.bz2
fetchmail-c70d8528fccd50a8af1843e6c8e0da43f56f1f35.zip
Label save closes.
svn path=/trunk/; revision=2723
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 1febf8ce..bbd6bfab 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -413,7 +413,7 @@ int main(int argc, char **argv)
bkgd = FALSE;
unlink(lockfile);
}
- fclose(lockfp);
+ fclose(lockfp); /* not checking should be safe, file mode was "r" */
}
/* if no mail servers listed and nothing in background, we're done */
@@ -582,7 +582,7 @@ int main(int argc, char **argv)
sprintf(tmpbuf," %d", run.poll_interval);
write(st, tmpbuf, strlen(tmpbuf));
}
- close(st);
+ close(st); /* should be safe, previous write was atomic */
lock_acquired = TRUE;
}