diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-07 07:17:37 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-07 07:17:37 (GMT) |
commit | 90f1db3d5da2947045653d7ecff43c4161061229 (patch) | |
tree | 3dd7d894f62b38d808a0221ada86a2760734a05b /Lib/shelve.py | |
parent | b5abd1615376bc7a66a16c5156a3a4cfc89eb54b (diff) | |
download | cpython-90f1db3d5da2947045653d7ecff43c4161061229.zip cpython-90f1db3d5da2947045653d7ecff43c4161061229.tar.gz cpython-90f1db3d5da2947045653d7ecff43c4161061229.tar.bz2 |
Backport:
Bug #876637, prevent stack corruption when socket descriptor
is larger than FD_SETSIZE.
This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE
which is typically only available to root. Since this wouldn't normally
be run in a test (ie, run as root), it doesn't seem too worthwhile to
add a normal test. The bug report has one version of a test. I've
written another. Not sure what the best thing to do is.
Do the check before calling internal_select() because we can't set
an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This seemed the clearest solution.
Diffstat (limited to 'Lib/shelve.py')
0 files changed, 0 insertions, 0 deletions