Ignore:
Timestamp:
Oct 26, 2007, 12:20:10 AM (17 years ago)
Author:
rainer
Message:

More thread-safety changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_prelude_old.c

    r1 r134  
    127127#define SH_NEED_GETHOSTBYXXX
    128128#include "sh_static.h"
     129#include "sh_pthread.h"
    129130
    130131static char               programname[64];
     
    627628  /* Get information about ip address */
    628629 
     630  SH_MUTEX_LOCK(mutex_resolv);
    629631  myhost = sh_gethostbyname(hostname);
    630632  src_ip = xstrdup(inet_ntoa(*((struct in_addr *)myhost->h_addr_list[0])));
     633  SH_MUTEX_UNLOCK(mutex_resolv);
    631634             
    632635
Note: See TracChangeset for help on using the changeset viewer.