From: Kent Borg <kentborg@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Signals
Date: Wed, 18 Jan 2006 16:24:07 -0500 [thread overview]
Message-ID: <20060118162407.A28495@domain.hid> (raw)
Thanks for the news that gdb should just work.
Now I am wondering about signals. I want to be able to send a regular
Linux signal to a userland realtime process. Do I use the regular
signal() to install a signal handler? When would I use
rt_task_catch() and rt_task_notify()?
What about multiple threads? I have 2 threads running. It seems that
the thread that called signal() is the one landing in the handler
routine. I would like to set some flags for the second thread to see,
so it can cleanup things before quiting, but it seems that my second
thread isn't running after I send the signal. I also think I am
corrupting something, because if I set up a loop that launches and
kills my program, my machine freezes up after a dozen cycles. I
commented out most of my guts and it still freezes up.
Thanks,
-kb
next reply other threads:[~2006-01-18 21:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-18 21:24 Kent Borg [this message]
2006-01-25 20:20 ` [Xenomai-help] Signals Jan Kiszka
2006-01-25 21:24 ` Kent Borg
2006-01-25 22:31 ` Jan Kiszka
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=20060118162407.A28495@domain.hid \
--to=kentborg@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.