Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


time.sleep stops sleeping when window size changes #2072

phistakis opened this Issue · 6 comments

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


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


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


@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...


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
@minrk minrk added this to the no action milestone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.