Ignore:
Timestamp:
Oct 23, 2007, 11:44:41 PM (14 years ago)
Author:
rainer
Message:

Make utility functions thread-safe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_err_console.c

    r22 r132  
    7070  key_t            key;
    7171  int              error;
     72  char errbuf[SH_ERRBUF_SIZE];
    7273
    7374  SL_ENTER(_("open_ipc"));
     
    8081      error = errno;
    8182      TPT(( 0, FIL__, __LINE__, _("msg=<ftok: %s> errno=<%d>\n"),
    82             sh_error_message(error), error));
     83            sh_error_message(error, errbuf, sizeof(errbuf)), error));
    8384      SL_RETURN(-1, _("open_ipc"));
    8485    }
     
    9293      error = errno;
    9394      TPT(( 0, FIL__, __LINE__, _("msg=<msgget: %s> errno=<%d>\n"),
    94             sh_error_message(error), error));
     95            sh_error_message(error, errbuf, sizeof(errbuf)), error));
    9596      SL_RETURN(-1, _("open_ipc"));
    9697    }
     
    131132  int              error;
    132133  int              count    = 0;
     134  char errbuf[SH_ERRBUF_SIZE];
    133135
    134136  SL_ENTER(_("push_message_queue"));
     
    201203          error = errno;
    202204          TPT(( 0, FIL__, __LINE__, _("msg=<msgsnd: %s> errno=<%d>\n"),
    203                 sh_error_message(error), error));
     205                sh_error_message(error, errbuf, sizeof(errbuf)), error));
    204206          SH_FREE(recv_msg);
    205207          SL_RETURN(-1, _("push_message_queue"));
Note: See TracChangeset for help on using the changeset viewer.