From: Glynn Clements <glynn@gclements.plus.com>
To: Sreevathsa <sreevathsa@gmail.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Custom defined object in a signal handler
Date: Thu, 29 Mar 2007 01:09:01 +0100 [thread overview]
Message-ID: <17931.925.199685.326663@cerise.gclements.plus.com> (raw)
In-Reply-To: <460b0048.12917d31.29d5.102f@mx.google.com>
Sreevathsa wrote:
> I have a question regarding signals. Is there a way you can pass some custom
> defined parameter (say, a struct foo * ) to a signal handler??
No (other than by using a global variable).
As you can only install a single handler for any given signal, there
isn't any real need to support closures.
--
Glynn Clements <glynn@gclements.plus.com>
next prev parent reply other threads:[~2007-03-29 0:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-28 23:54 Custom defined object in a signal handler Sreevathsa
2007-03-29 0:09 ` Glynn Clements [this message]
2007-03-29 0:22 ` Sreevathsa
2007-03-29 3:21 ` Glynn Clements
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=17931.925.199685.326663@cerise.gclements.plus.com \
--to=glynn@gclements.plus.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=sreevathsa@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).