Author piro
Recipients piro
Date 2007-10-30.00:06:29
SpamBayes Score 0.133626
Marked as misclassified No
Message-id <1193702790.06.0.592600873674.issue1360@psf.upfronthosting.co.za>
In-reply-to
Content
This issue probably depends on #1167930

When waiting on a queue in blocking mode, in no timeout is set, ctrl-C
doesn't raise KeyboardInterrupt::

    q = Queue()
    q.get(True)
    # ctrl-c doesn't work here

If any timeout is set, ctrl-c works as expected::

    q = Queue()
    ONEYEAR = 365 * 24 * 60 * 60
    q.get(True, ONEYEAR)
    # ctrl-c works here

    Traceback (most recent call last):
    File "queuebug.py", line 6, in <module>
        q.get(True, ONEYEAR)
    File "/usr/lib/python2.5/Queue.py", line 174, in get
        self.not_empty.wait(remaining)
    File "/usr/lib/python2.5/threading.py", line 233, in wait
        _sleep(delay)
    KeyboardInterrupt
History
Date User Action Args
2007-10-30 00:06:30pirosetspambayes_score: 0.133626 -> 0.133626
recipients: + piro
2007-10-30 00:06:30pirosetspambayes_score: 0.133626 -> 0.133626
messageid: <1193702790.06.0.592600873674.issue1360@psf.upfronthosting.co.za>
2007-10-30 00:06:30pirolinkissue1360 messages
2007-10-30 00:06:29pirocreate