Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
c7308902
Commit
c7308902
authored
10 months ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
adapt master changes for dev branch
parent
d50269b6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib66/service/service_graph_collect.c
+21
-0
21 additions, 0 deletions
src/lib66/service/service_graph_collect.c
with
21 additions
and
0 deletions
src/lib66/service/service_graph_collect.c
+
21
−
0
View file @
c7308902
...
...
@@ -146,6 +146,27 @@ void service_graph_collect(graph_t *g, char const *slist, size_t slen, struct re
}
/**
* In case of crash of a command and for whatever the reason, the
* service inside the module may not corresponds to the state of the
* module itself.
*
* Whatever the current state of service inside the module, we keep
* trace of its because others commands will look for these inner services.
*
* At the end of any process, the ssexec_signal will deal properly
* with the current state and the desire state of the service. */
if
(
res
.
type
==
TYPE_MODULE
&&
res
.
dependencies
.
ncontents
)
{
size_t
len
=
strlen
(
res
.
sa
.
s
+
res
.
dependencies
.
contents
)
;
_alloc_stk_
(
stk
,
len
+
1
)
;
if
(
!
stack_string_clean
(
&
stk
,
res
.
sa
.
s
+
res
.
dependencies
.
contents
))
log_dieusys
(
LOG_EXIT_SYS
,
"clean string"
)
;
service_graph_collect
(
g
,
stk
.
s
,
stk
.
len
,
hres
,
info
,
flag
)
;
}
free
(
wres
)
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment