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 neologix
Recipients neologix, pitrou, python-dev, vstinner
Date 2011-06-21.21:05:56
SpamBayes Score 1.0141483e-07
Marked as misclassified No
Message-id <BANLkTikJfz_OWBPP+TA2tSgQ=dr6O=bfUA@mail.gmail.com>
In-reply-to <BANLkTi=q8c5tfUqzY1ztk3AM0T6OL_+L3Q@mail.gmail.com>
Content
Duh, don't know what I was thinking: the syscall is not restarted
(even though ERESTARTSYS is displayed by strace): the real problem is
that the 3s timeout to communicate is not enough, because spawning a
new interpreter can take a long time (Antoine created an issue some
time ago about the high number of syscalls per import). If it takes
more than 1s, the test will fail.
Also, I guess it's worst on FreeBSD because subprocess.Popen uses
close_fds=True by default, and FreeBSD has a huge default
_SC_OPEN_MAX.
I've attached a patch passing close_fds=False to spawn_python, and
running the test only once, because otherwise this would require a
timeout quite large.
Files
File name Uploaded
test_siginterrupt.diff neologix, 2011-06-21.21:05:56
History
Date User Action Args
2011-06-21 21:05:57neologixsetrecipients: + neologix, pitrou, vstinner, python-dev
2011-06-21 21:05:56neologixlinkissue12363 messages
2011-06-21 21:05:56neologixcreate