Navigation


Changeset 695:712a0bb8d3bf in freeDiameter


Ignore:
Timestamp:
Jan 21, 2011, 4:18:39 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Add ability to skip dlclose() calls since it creates problems on FreeBSD8.1 64bits

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/freeDiameter-host.h.in

    r662 r695  
    4848#cmakedefine SCTP_USE_MAPPED_ADDRESSES
    4949#cmakedefine SCTP_CONNECTX_4_ARGS
     50#cmakedefine SKIP_DLCLOSE
    5051
    5152#cmakedefine ERRORS_ON_TODO
  • libfdcore/extensions.c

    r662 r695  
    172172                }
    173173               
     174#ifndef SKIP_DLCLOSE
    174175                /* Now unload the extension */
    175176                if (ext->handler) {
     
    179180                        }
    180181                }
     182#endif /* SKIP_DLCLOSE */
    181183               
    182184                /* Free the object and continue */
  • tests/testloadext.c

    r692 r695  
    6969                        /* We found a file with name *.fdx, attempt to load it */
    7070                        void *hdl, * ep;
    71                         int r;
    7271                        snprintf(fullname + pathlen, sizeof(fullname) - pathlen, "%s", dp->d_name);
    7372                       
     
    8988                       
    9089                        /* Done, now unload */
    91                         r = dlclose(hdl);
    92                         if (r) {
    93                                 TRACE_DEBUG(INFO, "Unable to dlclose '%s': %s.", fullname, dlerror());
    94                         }
    95                         CHECK( 0, r );
     90#ifndef SKIP_DLCLOSE
     91                        CHECK( 0, dlclose(hdl) );
     92#endif /* SKIP_DLCLOSE */
    9693                }
    9794        }
  • tests/tests.h

    r693 r695  
    110110        int sig;
    111111        sigset_t ss;
    112         fd_log_threadname ( "timeout catcher" );
     112        fd_log_threadname ( "Test alarm catcher" );
    113113       
    114114        sigemptyset(&ss);
Note: See TracChangeset for help on using the changeset viewer.