Opened 16 months ago

Last modified 16 months ago

#6738 enhancement new

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

Reported by: itamar Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description (last modified by exarkun)

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 16 months ago by exarkun

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