Closed bmarcot closed 6 years ago
Blocking syscalls may be interrupted by a signal: "If a signal is delivered to a thread waiting for a mutex, upon return from the signal handler the thread shall resume waiting for the mutex as if it was not interrupted." http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_lock.html
http://lxr.free-electrons.com/source/kernel/locking/mutex.c#L564 http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_cond_wait.html http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html http://stackoverflow.com/a/3800915/1439701
Fixed.
Blocking syscalls may be interrupted by a signal: "If a signal is delivered to a thread waiting for a mutex, upon return from the signal handler the thread shall resume waiting for the mutex as if it was not interrupted." http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_lock.html
http://lxr.free-electrons.com/source/kernel/locking/mutex.c#L564 http://pubs.opengroup.org/onlinepubs/009695399/functions/read.html http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_cond_wait.html http://pubs.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html http://stackoverflow.com/a/3800915/1439701