From 09566a5c88227c19bb08970faeecb84641106b7a Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Mon, 10 Mar 2008 12:10:39 +0000 Subject: [PATCH] 2008-03-10 13:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbapifs.h ! default usage of BSD locks in *BSD systems for emulating DOS/Windows DENY_* flags has been disabled because tests on FreeBSD 6.2 and MacOSX shows that this implementation can create self deadlock when used simultaneously with POSIX locks - thanks to Phil and Lorenzo for locating the problem and tests. --- harbour/ChangeLog | 13 +++++++++++-- harbour/include/hbapifs.h | 9 ++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 57cb9ddbcb..7da57bea08 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,11 +8,20 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2008-03-10 13:10 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/include/hbapifs.h + ! default usage of BSD locks in *BSD systems for emulating + DOS/Windows DENY_* flags has been disabled because tests + on FreeBSD 6.2 and MacOSX shows that this implementation + can create self deadlock when used simultaneously with + POSIX locks - thanks to Phil and Lorenzo for locating the + problem and tests. + 2008-03-09 18:30 UTC+0100 Lorenzo Fiorini (lorenzo.fiorini/at/gmail.com) * config/darwin/install.cf - added missed semicolon + * added missed semicolon * contrib/hbtip/utils.c - added translation for CR and LF + * added translation for CR and LF 2008-03-09 16:47 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/gtclip.c diff --git a/harbour/include/hbapifs.h b/harbour/include/hbapifs.h index cc58c73bb9..c52ff55b8a 100644 --- a/harbour/include/hbapifs.h +++ b/harbour/include/hbapifs.h @@ -159,8 +159,15 @@ extern HB_EXPORT BOOL hb_fsDirExists ( const char * pszDirName ); /* check # define HB_SHARELOCK_SIZE 0x1UL # if defined( HB_USE_BSDLOCKS_OFF ) # undef HB_USE_BSDLOCKS -# elif ( defined( HB_OS_LINUX ) || defined( HB_OS_BSD ) ) && \ +# elif defined( HB_OS_LINUX ) && \ !defined( __WATCOMC__ ) && !defined( HB_USE_BSDLOCKS ) + /* default usage of BSD locks in *BSD systems for emulating + * DOS/Windows DENY_* flags has been disabled because tests + * on FreeBSD 6.2 and MacOSX shows that this implementation + * can create self deadlock when used simultaneously with + * POSIX locks - thanks to Phil and Lorenzo for locating the + * problem and tests [druzus] + */ # define HB_USE_BSDLOCKS # endif #endif