2 ===================================================================
3 RCS file: /sources/monit/monit/CHANGES.txt,v
4 retrieving revision 1.296
5 retrieving revision 1.298
6 diff -u -r1.296 -r1.298
7 --- CHANGES.txt 27 Apr 2006 21:48:34 -0000 1.296
8 +++ CHANGES.txt 4 May 2006 23:54:33 -0000 1.298
11 + CHANGES version 4.8.1
13 This file summarizes changes made since 3.0
18 +* Fix the RHEL4 x86-64 related crash in logging introduced
19 + in 4.8. This problem may probably occur on other Opteron
20 + based platforms as well. Thanks to Mike Jackson
21 + ( mjackson mightymerchant , com ) for report and helping
22 + with the patch. This fix should also apply to 64-bit PPC
28 NEW FEATURES AND FUNCTIONS:
30 ===================================================================
31 RCS file: /sources/monit/monit/log.c,v
32 retrieving revision 1.27
33 retrieving revision 1.30
35 --- log.c 27 Apr 2006 20:56:41 -0000 1.27
36 +++ log.c 4 May 2006 23:50:03 -0000 1.30
39 * @author Jan-Henrik Haukeland, <hauk@tildeslash.com>
48 static void log_log(int priority, const char *s, va_list ap) {
58 + va_copy(ap_copy, ap);
59 + vfprintf(stderr, s, ap_copy);
62 vfprintf(stderr, s, ap);
72 + va_copy(ap_copy, ap);
73 + vsyslog(priority, s, ap_copy);
76 vsyslog(priority, s, ap);
81 fprintf(LOG, "[%s] %-8s : ",
82 timefmt(datetime, STRLEN),
83 logPriorityDescription(priority));
85 + va_copy(ap_copy, ap);
86 + vfprintf(LOG, s, ap_copy);