Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

time.sleep stops sleeping when window size changes #2072

Closed
phistakis opened this Issue Jul 1, 2012 · 6 comments

Comments

Projects
None yet
5 participants

if i change the window size when a sleep command is running, the sleep command gets some sort of interrupt and finishes.
no error or exception is raised.

i'm using iTerm2 (on mac OSX 10.7.4) to connect to a "Linux Server001 2.6.32-5-amd64 #1 SMP x86_64 GNU/Linux" where this happens.

p.s. - this doesn't happen on my local shell (i.e. iTerm2 on mac OSX 10.7.4). only on the remote machine which runs the above mentioned version of Linux

Owner

Carreau commented Jul 1, 2012

which version of IPython ? I'm not able to reproduce this with my a debian wheezy as server.

Owner

minrk commented Jul 1, 2012

This doesn't happen with iTerm2 and IPython via ssh on Ubuntu 12.04.

Contributor

bfroehle commented Jul 27, 2012

@phistakis Is this unique to IPython, or does it happen in a regular Python session?

I, as well, am not able to reproduce it.

this is unique to IPython and i only reproduced it on the above environment (the regular python session worked fine there).
it did not happen on my local mac, and not on other linux based systems i have access to..

as for versions:
Python 2.7.2 (default, Sep 19 2011, 13:38:17)
IPython 0.12 -- An enhanced Interactive Python.

p.s - i only got an email for the last comment. that's why no reply till now...

Owner

takluyver commented Mar 26, 2014

Changing the terminal size does send a SIGWINCH which is capable of interrupting the sleep system call. I'm not sure what would cause it to do so, but no-one has managed to replicate this (I've just tried as well, including sshing to a couple of other machines), so I'm going to close this for now.

@takluyver takluyver closed this Mar 26, 2014

@minrk minrk added this to the no action milestone Mar 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment