Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
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
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • lxc
  • Repository

Switch branch/tag
  • lxc
  • src
  • tests
  • Makefile.am
Find file
BlameHistoryPermalink
  • Christian Brauner's avatar
    namespace: add lxc_raw_clone() · ad135e37
    Christian Brauner authored Dec 14, 2017
    This is based on raw_clone in systemd but adapted to our needs. The main reason
    is that we need an implementation of fork()/clone() that does guarantee us that
    no pthread_atfork() handlers are run. While clone() in glibc currently doesn't
    run pthread_atfork() handlers we should be fine but there's no guarantee that
    this won't be the case in the future. So let's do the syscall directly - or as
    direct as we can. An additional nice feature is that we get fork() behavior,
    i.e. lxc_raw_clone() returns 0 in the child and the child pid in the parent.
    
    Our implementation tries to make sure that we cover all cases according to
    kernel sources. Note that we are not interested in any arguments that could be
    passed after the stack.
    Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
    ad135e37
Makefile.am 3.41 KB
EditWeb IDE
×

Replace Makefile.am

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.