Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e832b35a
Commit
e832b35a
authored
Dec 11, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore SIGXFSZ. Fixes #490453.
parent
ccc67057
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Lib/test/test_largefile.py
Lib/test/test_largefile.py
+9
-0
No files found.
Lib/test/test_largefile.py
View file @
e832b35a
...
...
@@ -8,6 +8,15 @@
import
test_support
import
os
,
struct
,
stat
,
sys
try
:
import
signal
# The default handler for SIGXFSZ is to abort the process.
# By ignoring it, system calls exceeding the file size resource
# limit will raise IOError instead of crashing the interpreter.
oldhandler
=
signal
.
signal
(
signal
.
SIGXFSZ
,
signal
.
SIG_IGN
)
except
(
ImportError
,
AttributeError
):
pass
# create >2GB file (2GB = 2147483648 bytes)
size
=
2500000000L
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment