Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame^] | 1 | Index: samba-4.6.2/ctdb/tests/src/test_mutex_raw.c |
| 2 | =================================================================== |
| 3 | --- samba-4.6.2.orig/ctdb/tests/src/test_mutex_raw.c |
| 4 | +++ samba-4.6.2/ctdb/tests/src/test_mutex_raw.c |
| 5 | @@ -166,8 +166,10 @@ int main(int argc, const char **argv) |
| 6 | if (ret == 0) { |
| 7 | pthread_mutex_unlock(mutex); |
| 8 | } |
| 9 | +#ifdef __GLIBC__ |
| 10 | } else if (ret == EBUSY) { |
| 11 | printf("pid=%u\n", mutex->__data.__owner); |
| 12 | +#endif |
| 13 | } else if (ret == 0) { |
| 14 | pthread_mutex_unlock(mutex); |
| 15 | } |