Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
nexedi
MariaDB
Commits
ab01dd73
Commit
ab01dd73
authored
Oct 20, 2006
by
gni/root@dev3-127.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG #21858 Make sure retry when EINTR returns, which decreases memory leak chance.
parent
7804e6e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
storage/ndb/src/common/util/File.cpp
storage/ndb/src/common/util/File.cpp
+14
-2
No files found.
storage/ndb/src/common/util/File.cpp
View file @
ab01dd73
...
...
@@ -123,12 +123,24 @@ bool
File_class
::
close
()
{
bool
rc
=
true
;
int
retval
=
0
;
if
(
m_file
!=
NULL
)
{
::
fflush
(
m_file
);
rc
=
(
::
fclose
(
m_file
)
==
0
?
true
:
false
);
m_file
=
NULL
;
// Try again?
retval
=
::
fclose
(
m_file
);
while
(
(
retval
!=
0
)
&&
(
errno
==
EINTR
)
){
retval
=
::
fclose
(
m_file
);
}
if
(
retval
==
0
){
rc
=
true
;
}
else
{
rc
=
false
;
ndbout_c
(
"ERROR: Close file error in File.cpp for %s"
,
strerror
(
errno
));
}
}
m_file
=
NULL
;
return
rc
;
}
...
...
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