]> git.ipfire.org Git - thirdparty/lxc.git/commit
state: s/sleep()/nanosleep()/ 2531/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 15 Aug 2018 22:39:50 +0000 (00:39 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 15 Aug 2018 22:43:19 +0000 (00:43 +0200)
commit746559f4611aeed3a3d4ec09c692f1f3b41c5fe1
tree86753949853e3ddc93aa08cef537c15135422dbf
parent03eda5655142c838085d93aed7ad142676118ad0
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@ubuntu.com>
src/lxc/state.c