diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 977499aa0d..ea5499a642 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-09-01 21:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/rtl/hbinet.c + * return logical value from hb_socketInit() function. + 2009-09-01 21:00 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/config/lib.mk * harbour/config/bin.mk diff --git a/harbour/source/rtl/hbinet.c b/harbour/source/rtl/hbinet.c index ef877447d6..8bc5b6c8de 100644 --- a/harbour/source/rtl/hbinet.c +++ b/harbour/source/rtl/hbinet.c @@ -195,11 +195,16 @@ static void hb_inetAutoInit( void ) HB_FUNC( HB_INETINIT ) { + int ret; hb_atomic_set( &s_initialize, 0 ); - hb_socketInit(); + ret = hb_socketInit(); + if( ret == 0 ) + { #if defined( HB_INET_LINUX_INTERRUPT ) - signal( HB_INET_LINUX_INTERRUPT, hb_inetLinuxSigusrHandle ); + signal( HB_INET_LINUX_INTERRUPT, hb_inetLinuxSigusrHandle ); #endif + } + hb_retl( ret == 0 ); } HB_FUNC( HB_INETCLEANUP )