All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Re-6:  rt_printf with daemonized task
@ 2009-10-07 13:44 oliver.schlenker
  2009-10-07 13:49 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: oliver.schlenker @ 2009-10-07 13:44 UTC (permalink / raw)
  To: gilles.chanteperdrix; +Cc: xenomai




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 <gilles.chanteperdrix@xenomai.org>
To:      oliver.schlenker@domain.hid

> oliver.schlenker@domain.hid 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?
> 
> -- 
>                                           Gilles
> 


To: gilles.chanteperdrix@xenomai.org
Cc: xenomai@xenomai.org




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] Re-6:  rt_printf with daemonized task
  2009-10-07 13:44 [Xenomai-help] Re-6: rt_printf with daemonized task oliver.schlenker
@ 2009-10-07 13:49 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2009-10-07 13:49 UTC (permalink / raw)
  To: oliver.schlenker; +Cc: xenomai

oliver.schlenker@domain.hid 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 (int facility_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?


-- 
                                          Gilles



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-07 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-07 13:44 [Xenomai-help] Re-6: rt_printf with daemonized task oliver.schlenker
2009-10-07 13:49 ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.