diff options
| author | Felix Fietkau | 2009-03-24 15:48:13 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2009-03-24 15:48:13 +0000 |
| commit | 25e6437875b2953f6b5706359e17db84334e7877 (patch) | |
| tree | 8045dfd71d2cb5f482ba634df62a90d12f802f77 | |
| parent | c60702b55cf8efe9dcd359fc9aa8e9c7cd421ada (diff) | |
| download | uci-25e6437875b2953f6b5706359e17db84334e7877.tar.gz | |
add missing fflush() on close - fixes a bug in the lock/unlock order (thx, Cyrus)
| -rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -478,6 +478,7 @@ static void uci_close_stream(FILE *stream) if (!stream) return; + fflush(stream); fd = fileno(stream); flock(fd, LOCK_UN); fclose(stream); |