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.

classification
Title: cmd.py uses raw_input(); eats SIGCLD
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: anthony_baxter, gvanrossum, mwh
Priority: high Keywords: patch

Created on 2001-03-05 07:20 by anthony_baxter, last changed 2022-04-10 16:03 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cmd.patch anthony_baxter, 2001-03-05 07:20 patch
Messages (4)
msg36000 - (view) Author: Anthony Baxter (anthony_baxter) (Python committer) Date: 2001-03-05 07:20
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()
msg36001 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-03-22 21:59
Logged In: YES 
user_id=6380

OK, applied, ready for 2.1b2.

I changed the try/except to only cover the raw_input() call.
msg36002 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2001-03-22 23:22
Logged In: YES 
user_id=6656

nag, nag.

the docs will get updated before 2.1, right? (not by me!)
msg36003 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-07-20 21:57
Logged In: YES 
user_id=6380

This was indeed documented.
History
Date User Action Args
2022-04-10 16:03:49adminsetgithub: 34066
2001-03-05 07:20:00anthony_baxtercreate