Changeset 263


Ignore:
Timestamp:
Dec 10, 2009, 9:28:09 PM (15 years ago)
Author:
katerina
Message:

Fix invalid use of mutex_mlock (ticket #181).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r262 r263  
    33        * support event correlation in log monitoring module
    44        * make sure host matching is done in a case insensitive way
     5          (reported by Tracy)
     6        * fix invalid use of mutex_mlock in src/sh_unix.c, function
     7          sh_unix_count_mlock() (reported by Remco Landegge).
    58       
    692.6.0:
  • trunk/src/sh_unix.c

    r253 r263  
    15551555#include <arpa/inet.h>
    15561556
    1557 char * sh_unix_h_name (struct hostent * host_entry)
     1557const char * sh_unix_h_name (struct hostent * host_entry)
    15581558{
    15591559        char ** p;
     
    48594859  SL_ENTER(_("sh_unix_count_mlock"));
    48604860
     4861#if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK)
    48614862  /* There's no cancellation point here, except if tracing is on
    48624863   */
    48634864  SH_MUTEX_LOCK_UNSAFE(mutex_mlock);
     4865#endif
    48644866
    48654867  page_list = sh_page_locked;
     
    48764878    }
    48774879
     4880#if defined(HAVE_MLOCK) && !defined(HAVE_BROKEN_MLOCK)
    48784881  SH_MUTEX_UNLOCK_UNSAFE(mutex_mlock);
     4882#endif
    48794883
    48804884#ifdef WITH_TPT
Note: See TracChangeset for help on using the changeset viewer.