Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
a2739df5
Commit
a2739df5
authored
Jan 12, 2015
by
Serge Hallyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "set close-all-fds by default"
it has unfortunate reprecussions elsewhere, and the needed fix can be done another way This reverts commit
1f76453a
.
parent
d2f31a57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
lxccontainer.c
src/lxc/lxccontainer.c
+5
-12
No files found.
src/lxc/lxccontainer.c
View file @
a2739df5
...
@@ -457,14 +457,6 @@ static bool lxcapi_load_config(struct lxc_container *c, const char *alt_file)
...
@@ -457,14 +457,6 @@ static bool lxcapi_load_config(struct lxc_container *c, const char *alt_file)
return
ret
;
return
ret
;
}
}
static
void
do_set_daemonize
(
struct
lxc_container
*
c
,
bool
state
)
{
c
->
daemonize
=
state
;
/* daemonize implies close_all_fds so set it */
if
(
state
)
c
->
lxc_conf
->
close_all_fds
=
1
;
}
static
bool
lxcapi_want_daemonize
(
struct
lxc_container
*
c
,
bool
state
)
static
bool
lxcapi_want_daemonize
(
struct
lxc_container
*
c
,
bool
state
)
{
{
if
(
!
c
||
!
c
->
lxc_conf
)
if
(
!
c
||
!
c
->
lxc_conf
)
...
@@ -473,7 +465,10 @@ static bool lxcapi_want_daemonize(struct lxc_container *c, bool state)
...
@@ -473,7 +465,10 @@ static bool lxcapi_want_daemonize(struct lxc_container *c, bool state)
ERROR
(
"Error getting mem lock"
);
ERROR
(
"Error getting mem lock"
);
return
false
;
return
false
;
}
}
do_set_daemonize
(
c
,
state
);
c
->
daemonize
=
state
;
/* daemonize implies close_all_fds so set it */
if
(
state
==
1
)
c
->
lxc_conf
->
close_all_fds
=
1
;
container_mem_unlock
(
c
);
container_mem_unlock
(
c
);
return
true
;
return
true
;
}
}
...
@@ -4103,9 +4098,7 @@ struct lxc_container *lxc_container_new(const char *name, const char *configpath
...
@@ -4103,9 +4098,7 @@ struct lxc_container *lxc_container_new(const char *name, const char *configpath
container_destroy
(
c
);
container_destroy
(
c
);
lxcapi_clear_config
(
c
);
lxcapi_clear_config
(
c
);
}
}
if
(
!
c
->
lxc_conf
)
c
->
daemonize
=
true
;
c
->
lxc_conf
=
lxc_conf_init
();
do_set_daemonize
(
c
,
true
);
c
->
pidfile
=
NULL
;
c
->
pidfile
=
NULL
;
// assign the member functions
// assign the member functions
...
...
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