From 6b7fed814c35a06c552ee70d1cea3499f5fcb562 Mon Sep 17 00:00:00 2001 From: "roberto@centos4" Date: Wed, 16 May 2012 15:38:35 +0200 Subject: [PATCH] fixed support for centos4 --- lock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lock.c b/lock.c index ce6bc2ca..85c4b1a4 100644 --- a/lock.c +++ b/lock.c @@ -67,7 +67,9 @@ struct uwsgi_lock_item *uwsgi_lock_fast_init(char *id) { struct uwsgi_lock_item *uli = uwsgi_register_lock(id, 0); +#ifdef EOWNERDEAD retry: +#endif if (pthread_mutexattr_init(&attr)) { uwsgi_log("unable to allocate mutexattr structure\n"); exit(1); @@ -103,10 +105,12 @@ retry: pthread_mutexattr_destroy(&attr); -#ifndef EOWNERDEAD +#ifdef EOWNERDEAD if (!uwsgi_pthread_robust_mutexes_enabled) { uli->can_deadlock = 1; } +#else + uli->can_deadlock = 1; #endif return uli;