Message162530
| Author |
sbt |
| Recipients |
5houston, asksol, jnoller, sbt |
| Date |
2012年06月08日.14:28:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339165681.59.0.401556356903.issue8028@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
One issue with sys.exit() is that it only makes the current thread exit. Even when called in the main thread, the program will wait for non-daemon threads to finish. A closer equivalent to terminate() would be
os.kill(os.getpid(), signal.SIGTERM).
The problem with minCrashing.py on Windows is that you are inheriting from Queue which has a __reduce__ method. Your Process class is trying to use Queue.__reduce__ to pickle itself. You should really just do "self._queue = Queue()" instead of inheriting from Queue. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月08日 14:28:01 | sbt | set | recipients:
+ sbt, jnoller, asksol, 5houston |
| 2012年06月08日 14:28:01 | sbt | set | messageid: <1339165681.59.0.401556356903.issue8028@psf.upfronthosting.co.za> |
| 2012年06月08日 14:28:01 | sbt | link | issue8028 messages |
| 2012年06月08日 14:28:00 | sbt | create |
|