1. 24 Feb, 2018 1 commit
    • confile: use mmap() to parse config file · 9994d140
      Christian Brauner authored
      Sigh, this is going to be fun. Essentially, dynamic memory allocation through
      malloc() and friends is unsafe when fork()ing in threads. The locking state
      that glibc maintains internally might get messed up when the process that
      fork()ed calls malloc or calls functions that malloc() internally. Functions
      that internally malloc() include fopen(). One solution here is to use open() +
      mmap() instead of fopen() + getline().
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
  2. 22 Feb, 2018 4 commits
  3. 21 Feb, 2018 12 commits
  4. 19 Feb, 2018 8 commits
  5. 18 Feb, 2018 15 commits