diff options
| author | Ulf Hermann <[email protected]> | 2017-04-11 16:31:27 +0200 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-05-08 09:47:06 +0000 |
| commit | 14192f5767b3388d9f6a1cdc8cadfb047b7a1f6a (patch) | |
| tree | dfe8fa844fb85a22f7d9d4e09f3a1d8e2e8103bc /tests/update2.c | |
| parent | 9f59b055f56ccebaa3d272d153c74fb889958a8a (diff) | |
Close files before renaming or unlinking them
On windows we cannot rename or unlink open files.
Change-Id: Ieae8712266a3e65217580d4936219767c5f26f21
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests/update2.c')
| -rw-r--r-- | tests/update2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/update2.c b/tests/update2.c index 3e228796..1dcff3fc 100644 --- a/tests/update2.c +++ b/tests/update2.c @@ -144,6 +144,7 @@ main (int argc, char *argv[] __attribute__ ((unused))) exit (1); } + close (fd); unlink (fname); return 0; |
