]> granicus.if.org Git - python/commit
This is SF patch #405952, by Anthony Baxter:
authorGuido van Rossum <guido@python.org>
Thu, 22 Mar 2001 21:59:20 +0000 (21:59 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 22 Mar 2001 21:59:20 +0000 (21:59 +0000)
commitbfb9184ba80fc14a6d773e72fc591250f668ed3a
tree61ee88d47f42c09c9f00e2d676f56aa20ab7a6c8
parent4e262a963190b201578b0b5d972035b1637f6bd5
This is SF patch #405952, by Anthony Baxter:
cmd.py uses raw_input(); eats SIGCLD:

  I discovered a rather nasty side effect of the standard cmd.py
  library today. If it's sitting inside raw_input(), any SIGCLDs that
  get sent to your application get silently eaten and ignored. I'm
  assuming that this is something that readline is thoughtfully doing
  for me.

  This patch adds an instance attr that allows the user to select to
  not use raw_input(), but instead use sys.stdin.readline()

[Changed slightly to catch EOFError only for raw_input().]
Lib/cmd.py