#143 closed defect (fixed)

test_client fails on cygwin

Reported by: zooko Owned by: warner
Priority: major Milestone: 0.6.0
Component: code Version: 0.5.1
Keywords: Cc:
Launchpad Bug:

Description

This happens on our cygwin buildslave as well as on my cygwin on Parallels v2 on my Macbook Pro:

===============================================================================
[FAIL]: allmydata.test.test_runner.RunNode.test_client

Traceback (most recent call last):
  File "/cygdrive/c/playground/allmydata/tahoe/src/allmydata/test/test_runner.py", line 167, in _started
    self.failUnlessEqual(rc, 0, errstr)
twisted.trial.unittest.FailTest: rc=1, OUT: '', ERR: 'never saw process go away
not restarting
'

Change History (5)

comment:1 Changed at 2007-09-22T22:46:06Z by zooko

  • Owner changed from zooko to warner

Okay, SIGINT doesn't cause the Python interpreter to quit under cygwin, but it does print "Keyboard Interrupt" to stdout when it receives that signal. (Could have something to do with #136 ?)

How about if do_stop() uses SIGTERM?

comment:2 Changed at 2007-09-22T22:49:47Z by zooko

No, this can't have anything to do with #136 (i.e. with Twisted ticket #733) because I did this with a plain cygwin python interpreter that hadn't imported Twisted or anything else.

comment:3 Changed at 2007-09-22T23:05:30Z by zooko

http://twistedmatrix.com/pipermail/twisted-python/2006-May/013115.html

excerpt from that page:

Just to add more informations:
when killing a normal Python process with TERM, the Interpreter
terminates without calling the functions registered with atexit.

Now this is strange because the MSDN says that, by default, SIGTERM is
ignored and the Python documentation says that only an handler for
SIGINT is installed.

comment:4 Changed at 2007-09-23T15:36:34Z by zooko

  • Resolution set to fixed
  • Status changed from new to closed

fixed by 93efd2902ee4626b

comment:5 Changed at 2007-09-28T02:26:36Z by warner

  • Component changed from unknown to code
Note: See TracTickets for help on using tickets.