Message147589
New changeset. The only change is:
"""
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -685,8 +685,16 @@
return -1;
}
if (n < size) {
- PyErr_SetString(PyExc_IOError, "failed to write all pollfds. "
- "Please, report in http://bugs.python.org/");
+ /*
+ ** Data writed to /dev/poll is a binary data structure. It is not
+ ** clear what to do if a partial write occurred. For now, raise
+ ** an exception and see if we actually found this problem in
+ ** the wild.
+ */
+ PyErr_Format(PyExc_IOError, "failed to write all pollfds. "
+ "Please, report at http://bugs.python.org/. "
+ "Data to report: Size tried: %d, actual size written: %d",
+ size, n);
return -1;
}
return 0;
"""
If there are no disagreements, I will commit to default (3.3) soon (in a few hours/a day).
Thanks!. |
|
Date |
User |
Action |
Args |
2011-11-14 12:46:42 | jcea | set | recipients:
+ jcea, exarkun, pitrou, giampaolo.rodola, neologix, rosslagerwall |
2011-11-14 12:46:42 | jcea | set | messageid: <1321274802.37.0.47073781425.issue6397@psf.upfronthosting.co.za> |
2011-11-14 12:46:41 | jcea | link | issue6397 messages |
2011-11-14 12:46:41 | jcea | create | |
|