[lxc-devel] [lxc/lxc] 746559: state: s/sleep()/nanosleep()/

GitHub noreply at github.com
Thu Aug 16 00:26:09 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 746559f4611aeed3a3d4ec09c692f1f3b41c5fe1
      https://github.com/lxc/lxc/commit/746559f4611aeed3a3d4ec09c692f1f3b41c5fe1
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-08-16 (Thu, 16 Aug 2018)

  Changed paths:
    M src/lxc/state.c

  Log Message:
  -----------
  state: s/sleep()/nanosleep()/

sleep() is not thread-safe but nanosleep() is. Since no resources are allocated
in lxc_wait() it is safe to call nanosleep() without cancellation handlers.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: 1a1de30d21dff0d15f6efb227fe72c5de14b244e
      https://github.com/lxc/lxc/commit/1a1de30d21dff0d15f6efb227fe72c5de14b244e
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2018-08-15 (Wed, 15 Aug 2018)

  Changed paths:
    M src/lxc/state.c

  Log Message:
  -----------
  Merge pull request #2531 from brauner/2018-08-16/minor_fixes

state: s/sleep()/nanosleep()/


Compare: https://github.com/lxc/lxc/compare/03eda5655142...1a1de30d21df
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the lxc-devel mailing list