Ticket #950 (new defect )

Opened 4 years ago

Last modified 2 years ago

BUG: childFDs mapping in process support breaks process termination

Reported by: exarkun Assigned to: itamarst
Type: defect Priority: high
Milestone: Component: core
Keywords: Cc: exarkun, itamarst, warner, z3p, therve
Branch: Author:
Launchpad Bug:

Attachments

proctest.py (1.6 kB) - added by exarkun 4 years ago.

Change History

  2005-03-27 22:45:52+00:00 changed by exarkun

  • attachment proctest.py added

  2005-03-27 22:45:53+00:00 changed by exarkun

Attached program demonstrates how it is impossible to shutdown certain processes
when using the childFDs mapping.
PP.processEnded tries to close its file descriptors in two different ways -
either with os.close() or transport.closeChildFD().  Only the os.close() path works.
I'm not sure if Twisted really should be responsible for knowing how to close
these FDs, though, since they were created outside of Twisted.  At the very
least, though, it is rather unfortunate that closeChildFD silently ignores the
unknown fds it is passed, making this problem much more difficult to debug than
it needed to be.

  2007-03-23 21:49:01+00:00 changed by therve

  • cc changed from exarkun, itamarst, warner, z3p to exarkun, itamarst, warner, z3p, therve
  • component set to conch

  2007-03-23 21:49:09+00:00 changed by therve

  • component changed from conch to core
Note: See TracTickets for help on using tickets.