From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: oliver.schlenker@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Re-6: rt_printf with daemonized task
Date: Wed, 07 Oct 2009 15:49:35 +0200 [thread overview]
Message-ID: <4ACC9C6F.5070601@domain.hid> (raw)
In-Reply-To: <DIIE.000001A60000AC7F@192.168.2.103>
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
prev parent reply other threads:[~2009-10-07 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 13:44 [Xenomai-help] Re-6: rt_printf with daemonized task oliver.schlenker
2009-10-07 13:49 ` Gilles Chanteperdrix [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ACC9C6F.5070601@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=oliver.schlenker@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.