From: Herbert Euler <herberteuler@hotmail.com>
To: Andreas Schwab <schwab@suse.de>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: RE: A question on sigchld_handler
Date: Thu, 27 Dec 2007 18:10:55 +0800 [thread overview]
Message-ID: <BAY143-W239FABEBFF188A6EF254A6DA540@phx.gbl> (raw)
In-Reply-To: <jey7bgjx02.fsf@sykes.suse.de>
>> Could SIGCHLD possibly be delivered more than once to Emacs, so that
>> `sigchld_handler' is invoked more than once?
>
> A signal is blocked as long as its handler hasn't returned. Thus that
> can only happen when the signal is explicitly unblocked, or the function
> is called manually.
Thank you very much! :D
So I misunderstood the GNU Libc manual.
There are Lisp_Objects used in `sigio_handler', and other structs used
in other signal handlers. These data structures seem not atomic to
signals. How are non-atomic problems avoided here?
Regards,
Guanpeng Xu
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
prev parent reply other threads:[~2007-12-27 10:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-27 6:46 A question on sigchld_handler Herbert Euler
2007-12-27 9:41 ` Andreas Schwab
2007-12-27 10:10 ` Herbert Euler [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=BAY143-W239FABEBFF188A6EF254A6DA540@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=emacs-devel@gnu.org \
--cc=schwab@suse.de \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.