Skip to content
Snippets Groups Projects
Commit e8484622 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Another stupid fix on MAC code

parent 0e7e2d62
No related branches found
No related tags found
No related merge requests found
......@@ -747,11 +747,11 @@ static void dlf_closelog(void) {
* especially play with the timestamp
*---------------------------------------------------------------------------*/
static void dlf_syslog(char* msg, int msglen) {
int send_flags = MSG_NOSIGNAL;
#ifdef __APPLE__
int send_flags = 0;
#ifndef __APPLE__
// MAC has has no MSG_NOSIGNAL
// but >= 10.2 comes with SO_NOSIGPIPE
send_flags = 0;
send_flags = MSG_NOSIGNAL;
#endif
/* enter critical section */
pthread_mutex_lock(&syslog_lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment