Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
syscall: add a way (through SysProcAttr?) to use Linux clone(2) flags in fork/exec. #6214
For systems programming (container-like) I would like to access for example through syscall.SysProcAttr clone flags that control the properties of forked child processes (e.g. CLONE_NEWPID, CLONE_NEWNS, CLONE_NEWNET, CLONE_NEWUTS). I have prepared 2 draft CLs: - add CLONE_* constants to syscall: https://golang.org/cl/13160043/ - use clone() instead of fork() in syscall/exec_linux.c: https://golang.org/cl/13159044/