Changeset 263 for trunk/src


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

Fix invalid use of mutex_mlock (ticket #181).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.