Toggle navigation
Toggle navigation
This project
Loading...
Sign in
UT
/
clsync
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
redmine
2015-05-21 18:15:48 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f8042a3b7e7231e1d232adc096abd771c71cd8e6
f8042a3b
1 parent
44091abd
[hllock] [dangerous commit] Continued
44091abd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
privileged.c
privileged.c
View file @
f8042a3
...
...
@@ -1304,12 +1304,19 @@ static inline int privileged_action(
# ifdef HL_LOCKS
if
(
hl_lock_p
->
enabled
)
{
while
(
!
hl_isanswered
(
HLLOCK_HANDLER
))
long
long
counter
=
0
;
while
(
!
hl_isanswered
(
HLLOCK_HANDLER
))
{
if
(
!
helper_isalive_cache
)
{
debug
(
1
,
"The privileged thread/process is dead (#2). Ignoring the command."
);
rc
=
ENOENT
;
goto
privileged_action_end
;
}
if
(
++
counter
>
HL_LOCK_NONPRIV_TRIES
)
{
sleep
(
SLEEP_SECONDS
);
counter
=
0
;
}
}
# ifdef HL_LOCK_TRIES_AUTO
if
(
isadjusting
)
{
...
...
Please
register
or
login
to post a comment