Opened 4 years ago

Last modified 4 years ago

#6738 enhancement new

Support IReactorProcess when the reactor is run in a non-main thread

Reported by: Itamar Turner-Trauring Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description (last modified by Jean-Paul Calderone)

3rd-party users of Twisted who run the reactor in a thread, in particular Crochet, may wish to still have support for child processes. The current POSIX implementation is limited by the fact that signals and threads mix poorly.

Solutions might be:

  • expose the SIGCHLD handler so that 3rd-party code can install it
  • do something other than handle SIGCHLD when running in a thread (poll wait() on some interval when child processes exist, for example)

Change History (1)

comment:1 Changed 4 years ago by Jean-Paul Calderone

Description: modified (diff)
Summary: Expose SIGCHLD handler installation as public APISupport IReactorProcess when the reactor is run in a non-main thread
Note: See TracTickets for help on using tickets.