Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
swmodd
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCM
swmodd
Commits
4c844ede
Commit
4c844ede
authored
3 years ago
by
Roman Azarenko
Browse files
Options
Downloads
Plain Diff
Merge commit '
2f953ea7
' into cjndm-6.5
parents
f83e1018
2f953ea7
Branches
Branches containing commit
No related tags found
No related merge requests found
Checking pipeline status
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/swmod_lxc.c
+5
-0
5 additions, 0 deletions
src/swmod_lxc.c
with
5 additions
and
0 deletions
src/swmod_lxc.c
+
5
−
0
View file @
4c844ede
...
@@ -257,6 +257,11 @@ void populate_lxc_environment(void)
...
@@ -257,6 +257,11 @@ void populate_lxc_environment(void)
int
i
,
lxc_nbr
;
int
i
,
lxc_nbr
;
lxc_nbr
=
list_all_containers
(
lxcpath
,
NULL
,
&
clist
);
lxc_nbr
=
list_all_containers
(
lxcpath
,
NULL
,
&
clist
);
if
(
clist
==
NULL
||
lxc_nbr
==
0
)
{
PRINT_INFO
(
"Empty container list, return"
);
return
;
}
for
(
i
=
0
;
i
<
lxc_nbr
&&
i
<
(
MAX_ENV
-
LXC_START_INDEX
);
i
++
)
{
for
(
i
=
0
;
i
<
lxc_nbr
&&
i
<
(
MAX_ENV
-
LXC_START_INDEX
);
i
++
)
{
struct
lxc_container
*
ct
=
clist
[
i
];
struct
lxc_container
*
ct
=
clist
[
i
];
bool
ct_running
=
ct
->
is_running
(
ct
);
bool
ct_running
=
ct
->
is_running
(
ct
);
...
...
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