]> git.sesse.net Git - vlc/commit
pthread: fix semaphore error handling
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 17 Jan 2010 10:13:31 +0000 (12:13 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 17 Jan 2010 10:14:11 +0000 (12:14 +0200)
commit73c88a2e7096b7f9a2ad0af83081bd2c19032945
treebd13f38c5baf903e7f02b474a16c4288ed2cd0f5
parent30c48e10c5971484761d09243fc4adff9165772c
pthread: fix semaphore error handling

POSIX sem_*() functions return -1 on error and the error code in errno
(contrary to most POSIX thread functions).
src/misc/pthread.c