]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc: Distinguish pthread_mutex_unlock error messages 2012/head
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Fri, 8 Dec 2017 02:02:18 +0000 (00:02 -0200)
committerMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Fri, 8 Dec 2017 02:02:18 +0000 (00:02 -0200)
commit81a14ca9443ea6934f6cb393b8dae206084ec43f
tree52ed258ea0e573676c10d83087fd27be39a9d79c
parentf6812e7f2ed7e97ecce3e864dc4d737788883c65
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