Ned Deily <n...@acm.org> added the comment: I took a quick look at this. It's not just OS X, the following also fails on FreeBSD 8.2:
$ python2.7 -c 'import readline' $ $ python2.7 -c 'import readline' & $ [1] + Stopped (tty output) python2.7 -c ?import readline It seems to be hanging on a read from stdin, as adding a redirect of stdin to /dev/null prevents the hang: $ python2.7 -c 'import readline' </dev/null & [1] 36178 $ [1]+ Done python2.7 -c 'import readline' < /dev/null But, on Debian and Ubuntu, neither case hangs. Also, on OS X, the same hang behavior is observed when linked with either GNU readline or BSD libedit. I'm not sure what the significant difference here is: possibly a BSDism vs Linuxism? ---------- components: -Macintosh nosy: +ned.deily title: 'import readline' fails when launching with '&' -> 'import readline' hangs when launching with '&' on BSD and OS X type: crash -> behavior versions: +Python 3.2, Python 3.3 -Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14892> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com