mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-12 09:46:25 +08:00
82367938b7
Currently nsexec() creates a proxy process to enter into a pid namespace. It isn't good, because we need to proxy an exit code and signals. We can use CLONE_PARENT to fork a process with the right parent. Signed-off-by: Andrey Vagin <avagin@openvz.org>
13 lines
148 B
Go
13 lines
148 B
Go
// +build linux
|
|
|
|
package nsenter
|
|
|
|
/*
|
|
#cgo CFLAGS: -Wall
|
|
extern void nsexec();
|
|
void __attribute__((constructor)) init() {
|
|
nsexec();
|
|
}
|
|
*/
|
|
import "C"
|