Commit 0355c5aa authored by Asbjørn Pettersen's avatar Asbjørn Pettersen
Browse files

close swap file before unlink

parent ad4d9619
Tue Apr 27 20:58:14 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen)
* app/tile_swap.c (tile_swap_exit1): close swap file before unlink.
Mon Apr 26 21:34:08 PDT 1999 Manish Singh <yosh@gimp.org>
* app/gimage_cmds.c
......
......@@ -155,6 +155,14 @@ tile_swap_exit1 (gpointer key,
tile_swap_print_gaps (def_swap_file);
}
#ifdef __EMX__
/* should close before unlink */
if (swap_file->fd > 0)
{
close (swap_file->fd);
swap_file->fd = -1;
}
#endif
unlink (swap_file->filename);
}
}
......
......@@ -155,6 +155,14 @@ tile_swap_exit1 (gpointer key,
tile_swap_print_gaps (def_swap_file);
}
#ifdef __EMX__
/* should close before unlink */
if (swap_file->fd > 0)
{
close (swap_file->fd);
swap_file->fd = -1;
}
#endif
unlink (swap_file->filename);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment