all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Delivering SIGIO when several threads are active?
@ 2016-12-30 10:25 Eli Zaretskii
  2016-12-30 17:54 ` Paul Eggert
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2016-12-30 10:25 UTC (permalink / raw)
  To: emacs-devel

When SIGIO is received by some thread, we currently deliver it to the
main thread, see deliver_input_available_signal and
deliver_process_signal.  Is that appropriate when more than one thread
is active?  The SIGIO handler just sets a global variable, so the
handler itself is okay, I think, but is it okay to interrupt the main
thread with SIGIO at some arbitrary point?  E.g., the main thread
could be in some Xlib or GTK call.

The comments to deliver_process_signal say:

                 POSIX says any thread can receive a signal that is
   associated with a process, process group, or asynchronous event.
   On GNU/Linux that is not true, but for other systems (FreeBSD at
   least) it is.

What does happen on GNU/Linux?  Is there a specific thread on
GNU/Linux which gets signals associated with a process?  And if so,
does this affect what we should do with SIGIO in this case?

Thanks.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-12-30 21:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-30 10:25 Delivering SIGIO when several threads are active? Eli Zaretskii
2016-12-30 17:54 ` Paul Eggert
2016-12-30 18:37   ` Eli Zaretskii
2016-12-30 21:05     ` Paul Eggert
2016-12-30 21:45       ` Paul Eggert

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.