Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GLib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
926
Issues
926
List
Boards
Labels
Service Desk
Milestones
Merge Requests
54
Merge Requests
54
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
GLib
Commits
ea2db920
Commit
ea2db920
authored
May 27, 2020
by
Philip Withnall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glocalfileoutputstream: Use g_fsync() for platform-independence
Signed-off-by:
Philip Withnall
<
withnall@endlessm.com
>
parent
3b6460b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
gio/glocalfileoutputstream.c
gio/glocalfileoutputstream.c
+2
-4
No files found.
gio/glocalfileoutputstream.c
View file @
ea2db920
...
@@ -313,9 +313,8 @@ _g_local_file_output_stream_really_close (GLocalFileOutputStream *file,
...
@@ -313,9 +313,8 @@ _g_local_file_output_stream_really_close (GLocalFileOutputStream *file,
{
{
GLocalFileStat
final_stat
;
GLocalFileStat
final_stat
;
#ifdef HAVE_FSYNC
if
(
file
->
priv
->
sync_on_close
&&
if
(
file
->
priv
->
sync_on_close
&&
fsync
(
file
->
priv
->
fd
)
!=
0
)
g_
fsync
(
file
->
priv
->
fd
)
!=
0
)
{
{
int
errsv
=
errno
;
int
errsv
=
errno
;
...
@@ -325,8 +324,7 @@ _g_local_file_output_stream_really_close (GLocalFileOutputStream *file,
...
@@ -325,8 +324,7 @@ _g_local_file_output_stream_really_close (GLocalFileOutputStream *file,
g_strerror
(
errsv
));
g_strerror
(
errsv
));
goto
err_out
;
goto
err_out
;
}
}
#endif
#ifdef G_OS_WIN32
#ifdef G_OS_WIN32
/* Must close before renaming on Windows, so just do the close first
/* Must close before renaming on Windows, so just do the close first
...
...
Write
Preview
Markdown
is supported
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