Mercurial > hg > nginx
diff src/core/ngx_shmtx.h @ 2563:e345fcf61a12
compatibility with Tru64 UNIX: fcntl(F_SETLK, F_WRLCK) returns EINVAL if busy
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 13 Mar 2009 14:53:30 +0000 |
parents | 2c7fed12fab7 |
children | 0daede16d68b |
line wrap: on
line diff
--- a/src/core/ngx_shmtx.h Fri Mar 13 14:20:34 2009 +0000 +++ b/src/core/ngx_shmtx.h Fri Mar 13 14:53:30 2009 +0000 @@ -57,7 +57,15 @@ return 0; } - ngx_log_abort(err, ngx_trylock_fd_n " failed"); +#if __osf__ /* Tru64 UNIX */ + + if (err == NGX_EACCESS) { + return 0; + } + +#endif + + ngx_log_abort(err, ngx_trylock_fd_n " %s failed", mtx->name); return 0; } @@ -74,7 +82,7 @@ return; } - ngx_log_abort(err, ngx_lock_fd_n " failed"); + ngx_log_abort(err, ngx_lock_fd_n " %s failed", mtx->name); } @@ -89,7 +97,7 @@ return; } - ngx_log_abort(err, ngx_unlock_fd_n " failed"); + ngx_log_abort(err, ngx_unlock_fd_n " %s failed", mtx->name); }