]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/message.c
Ignore UTF-8 marker at the start of .conf files.
[bacula/bacula] / bacula / src / lib / message.c
index 03074b5487a31987a93d845781f2d11c63dbd346..7b411d5b3c6ad0ec914bff2fa33197b57af3be9b 100755 (executable)
@@ -596,11 +596,9 @@ void dispatch_message(JCR *jcr, int type, time_t mtime, char *msg)
     }
 
     if (type == M_ABORT || type == M_ERROR_TERM) {
-#if !defined(HAVE_WIN32)
        fputs(dt, stdout);
        fputs(msg, stdout);         /* print this here to INSURE that it is printed */
        fflush(stdout);
-#endif
     }
 
     /* Now figure out where to send the message */
@@ -1099,6 +1097,8 @@ Jmsg(JCR *jcr, int type, time_t mtime, const char *fmt,...)
 
     if (type == M_ABORT){
        char *p = 0;
+       printf("Bacula forced SEG FAULT to obtain traceback.\n");
+       syslog(LOG_DAEMON|LOG_ERR, "Bacula forced SEG FAULT to obtain traceback.\n");
        p[0] = 0;                      /* generate segmentation violation */
     }
     if (type == M_ERROR_TERM) {