All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Steve Deiters <SteveDeiters@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Printf stops working after receiving signal.
Date: Thu, 24 Sep 2009 21:43:23 +0200	[thread overview]
Message-ID: <4ABBCBDB.90706@domain.hid> (raw)
In-Reply-To: <181804936ABC2349BE503168465576460C3AE7CB@exchserver.basler.com>

Steve Deiters wrote:
> I have a simple little test program, attached below.  When I hit CTL-C
> to break the program, not all of the "finished" lines will print.  If I
> remove either the rt_task_shadow call or the sigwait at the end, it will
> then print all of them.  Adding a fflush(stdout) to the end does nothing
> to help it.
> 
> I'm not sure if there's some interaction with the Xenomai domain I am
> just missing which is causing the print statements to be dropped.
> 
> This is running on a PowerPC kernel 2.6.24 with Xenoami 2.4.9.

Do not know if this is related, but sigwait is only guaranteed to work
if you wait for signals that are currently masked.


-- 
					    Gilles.


  reply	other threads:[~2009-09-24 19:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24 19:25 [Xenomai-help] Printf stops working after receiving signal Steve Deiters
2009-09-24 19:43 ` Gilles Chanteperdrix [this message]
2009-09-24 19:48 ` Gilles Chanteperdrix
2009-09-24 23:10   ` Steve Deiters
2009-09-25  7:26     ` Gilles Chanteperdrix
2009-09-25 14:33       ` Steve Deiters
2009-09-25 15:05         ` 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=4ABBCBDB.90706@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=SteveDeiters@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.