~launchpad-pqm/launchpad/devel

Viewing all changes in revision 12344.5.4.

  • Committer: John Arbash Meinel
  • Date: 2011-03-02 13:04:02 UTC
  • mto: This revision was merged to the branch mainline in revision 12534.
  • Revision ID: john@arbash-meinel.com-20110302130402-o0dzzd7e893qvh9j
Change the code to use signal.alarm() instead of another python thread.

We lose sub-second granularity, but gain some security in knowing that a GIL locked
thread won't prevent the timer from actually firing. threads and signals don't usually
interact well, anyway.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: