Hi,
Thanks for using the PRF.
>> ACE VERSION: 5.2.2
>>
>> HOST MACHINE and OPERATING SYSTEM: SunOS 5.8 Generic_108528-09 sun4u
sparc
>> SUNW,Ultra-80
>> TARGET MACHINE and OPERATING SYSTEM, if different from HOST: Same
>> COMPILER NAME AND VERSION (AND PATCHLEVEL):
>> Reading specs from
>> /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
>> gcc version 2.95.2 19991024 (release)
>>
>> AREA/CLASS/EXAMPLE AFFECTED:
>> [Log_Msg]
>>
>> DOES THE PROBLEM AFFECT:
>> COMPILATION? No
>>
>> LINKING? No
>> EXECUTION? Yes
>>
>> SYNOPSIS:
>> When calling Ace_Log_Msg using the
ACE_Log_Msg::SYSLOG
>> form of open logging
>> ceases to work after calling ACE::daemonize().
>>
>> DESCRIPTION:
>> Example code is attached...if ACE::daemonize() is
>> commented out
>> logging to syslog works as expected. If
ACE::daemonize
>> is called all
>> logging after this call does not appear to go to
>> syslog.
If you check out the source code to ACE::demonize() you'll see that by
default it closes all the I/O handles, including the one to syslog. I
therefore recommend you either
1. Initialize the syslog stuff *after* you daemonize a process or
2. Change the default behavior to not close the handles.
Take care,
Doug
--
Dr. Douglas C. Schmidt, Associate Professor TEL: (949) 824-1901
Dept of Electrical & Computer Engineering FAX: (949) 824-2321
616E Engineering Tower WEB: www.ece.uci.edu/~schmidt/
University of California, Irvine, 92697-2625 NET: schmidt@...