[lxc-devel] [lxc/lxc] 67c4fe: Revert "Revert "Use pthread_atfork() to unlock mut...

GitHub noreply at github.com
Mon Jan 6 14:46:42 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 67c4fe9b2dc41b843dbac1b3b38ea96e4d2b6a07
      https://github.com/lxc/lxc/commit/67c4fe9b2dc41b843dbac1b3b38ea96e4d2b6a07
  Author: Stéphane Graber <stgraber at ubuntu.com>
  Date:   2014-01-06 (Mon, 06 Jan 2014)

  Changed paths:
    M src/lxc/Makefile.am
    M src/lxc/attach.c
    M src/lxc/bdev.c
    M src/lxc/lxccontainer.c
    M src/lxc/lxclock.c
    M src/lxc/monitor.c

  Log Message:
  -----------
  Revert "Revert "Use pthread_atfork() to unlock mutexes after fork()""

This reverts commit 64b1be2903078ef9e9ba3ffcbc30a4dc9bc5cc6c.

Reverting in preparation for another implementation which is
bionic-compatible.

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: babbea4b30ff74958a57af623280dec68219df23
      https://github.com/lxc/lxc/commit/babbea4b30ff74958a57af623280dec68219df23
  Author: S.Çağlar Onur <caglar at 10ur.org>
  Date:   2014-01-06 (Mon, 06 Jan 2014)

  Changed paths:
    A config/tls.m4
    M configure.ac
    M src/lxc/lxclock.c
    M src/lxc/lxclock.h
    M src/lxc/utils.c

  Log Message:
  -----------
  check pthread_atfork and thread-local storage

Add pthread_atfork check to configure.ac and uses it when necessary,
Introduces tls.m4 macro for checking thread-local storage support, Puts
values array into thread-local storage
(lxc_global_config_value at src/lxc/utils.c), Removes
static_lock/static_unlock from LXC code.

Lastly, it introduces a warning for bionic users about multithreaded
usage of LXC.

(requires 64b1be2903078ef9e9ba3ffcbc30a4dc9bc5cc6c to be reverted first)

Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/420dfb599b22...babbea4b30ff


More information about the lxc-devel mailing list