Re-6: rt_printf with daemonized task
in the glibc documentation it's specified as a void function :
18.2.2 syslog, vsyslog
The symbols referred to in this section are declared in the file syslog.h. — Function: void syslog (int facility_priority, char *format, ...)
There are also no references to errno in the documentation.
Did try already with explicit openlog() function call and setlogmask() but result is the same.
Oliver
-------- Original Message --------
Subject: Re: Re-4: [Xenomai-help] rt_printf with daemonized task (07-Okt-2009 15:39) From: Gilles Chanteperdrix <[email protected]> To: [email protected]
Quoted 9 lines
Quoted 2 lines · [email protected] wrote:
syslogd/klogd daemon is running correctly, it's used on the same system by a lot of other processes.
Did you try to check the return value of the
syslog()syscall?Signature · 1 line
Gilles
Quoted 8 lines · [email protected] wrote:
in the glibc documentation it's specified as a void function :
18.2.2 syslog, vsyslog
The symbols referred to in this section are declared in the file
syslog.h. — Function: void syslog (intfacility_priority, char *format, ...)
So, the first argument is a format string? You should pass "%s" followed by head->text then, not head->text directly. If head->text contains the % characters, you will get errors. I do not think fixing this will fix your issues though.
I have no idea why it fails. Did you try to put a printf as well as the syslog call to check whether syslog is really called? Are you 100% sure that you do not close file descriptors when daemonizing your process?
Signature · 1 line
Gilles