execution: UNRESOLVED pthread_rwlock_destroy on rwlock with waiters! main: attempt write lock main: acquired write lock thread: attempt timed read lock, 2 seconds main: fire SIGUSR1 to thread sig_handler: signal is handled by thread sig_handler: sleeping for 4 seconds main: unlock write lock thread: correctly acquired read lock Error at pthread_destroy()