]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc: Distinguish pthread_mutex_unlock error messages
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Fri, 8 Dec 2017 02:02:18 +0000 (00:02 -0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 Dec 2017 12:24:55 +0000 (13:24 +0100)
commitbd18ea05627ed66b3c304233d4cd2fc83d8fa6fd
tree60f5ec2025ab8529de57305fe2c0528972548852
parentca4bad795e78ec5a00a94a5ced31e068590b329c
lxc: Distinguish pthread_mutex_unlock error messages

The same message exists in lxclock.c and cgmanager.c, so print the
filename along with the message.

Before this patch:
lxc-destroy -n u1
pthread_mutex_unlock returned:1 Operation not permitted

After this patch:
xc-destroy -n u1
lxclock.c: pthread_mutex_unlock returned:1 Operation not permitted

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
src/lxc/cgroups/cgmanager.c
src/lxc/lxclock.c