[Date Prev][Date Next] [Chronological] [Thread] [Top]

Slapd syslogging on DU4.0



HI 
	I've build open-ldap-stable on DU4. It all seems to work correctly and it 
passes all the tests. I built it using POSIX_THREADS and "cc -pthread -std1". 
While its is sysloging its not  going off the LOG_LOCAL4. I get entries like

Sep 25 11:46:27 machine syslog: slapd starting
Sep 25 11:46:32 machine syslog: conn=0 fd=7 connection from localhost 
(127.0.0.1)
 accepted.

rather that 

Sep 25 11:46:27 machine slapd[12001]: slapd starting
Sep 25 11:46:32 machine slapd[12001]: conn=0 fd=7 connection from localhost 
(127.0.0.1) accepted

Its as if the openlog call is not made. However extensive debug show that that 
call is made. Moveover a syslog call inserted after the openlog call produce 
the correct result. ie

Sep 24 13:43:25 yarama slapd[11938]: test

Has anyone seems this behaviour before and know how to fix it.

(I have a feeling that it could be something to do with threads and the syslog 
stuff not being thread safe)
-- 

  +-----------------+------------------------------------------+
  |    _   ^   _    | Dr. Rodney McDuff                        |
  |   |\  /|\  /|   | Network Development, Prentice Centre     |
  |     \  |  /     | The University of Queensland             |
  |      \ | /      | St. Lucia, Brisbane                      |
  |       \|/       | Queensland, Australia. 4072.             |
  |<-------+------->| TELEPHONE: +61 7 3365 8220               |
  |       /|\       | FACSIMILE: +61 7 3365 4477               |
  |      / | \      | EMAIL: mcduff@prentice.uq.edu.au         |
  |     /  |  \     |                                          |
  |   |/  \|/  \|   |        Ex ignorantia ad sapientiam       |
  |    -   v   -    |            Ex luce ad tenebras           |
  +-----------------+------------------------------------------+