From: oliver.schlenker@domain.hid
To: gilles.chanteperdrix@xenomai.org
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_printf with daemonized task
Date: Thu, 8 Oct 2009 07:15:17 +0000 [thread overview]
Message-ID: <0000ACAC.4ACDADA4@domain.hid> (raw)
-------- Original Message --------
Subject: Re: Re-8: [Xenomai-help] rt_printf with daemonized task (07-Okt-2009 17:24)
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: oliver.schlenker@smmotioncontrol.de
> oliver.schlenker@smmotioncontrol.de wrote:
> >
> >
> > As you expected, changing the syslog call from
> > syslog( LOG_ERR | LOG_LOCAL4, head->text );
> > to
> > syslog( LOG_ERR | LOG_LOCAL4, "%s", head->text );
> >
> > did not change anything.
> >
> > To track down the problem further, I have made a small test application :
> >
> > #include <stdlib.h>
> > #include <stdio.h>
> >
> > #include <native/task.h>
> > #include <native/timer.h>
> > #include <rtdk.h>
> >
> >
> > int main( int arc, char *argv[] )
> > {
> > int i;
> >
> > rt_print_auto_init(1);
> >
> > rt_printf("--------------- TEST RT-PRINTF 1 ------------\n");
> >
> > sleep(1);
> >
> > daemon(0,0);
> >
> > rt_print_auto_init(1);
> >
> > rt_printf("--------------- TEST RT-PRINTF 2 ------------\n");
> >
> > sleep(10);
> >
> > return(0);
> > }
> >
> >
> >
> > This application gives the following results :
> > - If the daemon() function is not called, all rt_printf() do work well
> > and output is shown in syslog
> > - If daemon() function is called, and first call to sleep(1) is omitted,
> > there is no output in the syslog whatsoever.
> > - If daemon() function is called, and first call to sleep(1) is executed,
> > there is output of the first rt_printf in the syslog but not of the
> > second
> > one.
> >
> > I do not have any idea why daemonizing of the process is not giving
> > any output to the syslog.
>
> Could you try daemon(0, 1)?
No change.
>
First of all, I would like to apologize for the inconvenience I put on you. I wasn't
aware of this situation.
> Could you also try to send normal replies to our replies, not mails
> which do not appear as replies and start new threads?
Hopefully with this mail it did change. If not please let me know what to do.
>
> Could you also remove the annoying feature that ask me to confirm that I
> want you to be notified that I read your mail?
Feature should now be turned off, please let me also know, if not.
>
> --
> Gilles
>
Oliver
To: gilles.chanteperdrix@xenomai.org
Cc: xenomai-help@gna.org
next reply other threads:[~2009-10-08 7:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-08 7:15 oliver.schlenker [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-10-20 10:03 [Xenomai-help] :: rt_printf with daemonized task oliver.schlenker
2009-10-20 16:01 ` Gilles Chanteperdrix
2009-10-20 16:07 ` Jan Kiszka
2009-10-20 16:11 ` Jan Kiszka
2009-10-20 9:26 oliver.schlenker
2009-10-20 9:33 ` Jan Kiszka
2009-10-19 13:14 oliver.schlenker
2009-10-19 14:00 ` Jan Kiszka
2009-10-19 13:12 oliver.schlenker
2009-10-19 14:00 ` Jan Kiszka
2009-10-09 14:48 oliver.schlenker
2009-10-09 14:59 ` Jan Kiszka
2009-10-09 13:54 oliver.schlenker
2009-10-09 13:34 oliver.schlenker
2009-10-09 13:49 ` Gilles Chanteperdrix
2009-10-09 13:58 ` Jan Kiszka
2009-10-08 12:01 oliver.schlenker
2009-10-08 13:17 ` Jan Kiszka
2009-10-06 15:10 [Xenomai-help] " oliver.schlenker
2009-10-06 15:16 ` Gilles Chanteperdrix
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=0000ACAC.4ACDADA4@domain.hid \
--to=oliver.schlenker@domain.hid \
--cc=gilles.chanteperdrix@xenomai.org \
--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.