This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcea
Recipients exarkun, giampaolo.rodola, jcea, neologix, pitrou, rosslagerwall
Date 2011-11-14.12:46:41
SpamBayes Score 0.0017102401
Marked as misclassified No
Message-id <1321274802.37.0.47073781425.issue6397@psf.upfronthosting.co.za>
In-reply-to
Content
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!.
History
Date User Action Args
2011-11-14 12:46:42jceasetrecipients: + jcea, exarkun, pitrou, giampaolo.rodola, neologix, rosslagerwall
2011-11-14 12:46:42jceasetmessageid: <1321274802.37.0.47073781425.issue6397@psf.upfronthosting.co.za>
2011-11-14 12:46:41jcealinkissue6397 messages
2011-11-14 12:46:41jceacreate