Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
0355c5aa
Commit
0355c5aa
authored
Apr 27, 1999
by
Asbjørn Pettersen
Browse files
close swap file before unlink
parent
ad4d9619
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
0355c5aa
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
...
...
app/base/tile-swap.c
View file @
0355c5aa
...
...
@@ -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
);
}
}
...
...
app/tile_swap.c
View file @
0355c5aa
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment