[Patches] [ python-Patches-405952 ] cmd.py uses raw_input(); eats SIGCLD

noreply@sourceforge.net noreply@sourceforge.net
Fri, 20 Jul 2001 14:57:29 -0700


Patches item #405952, was opened at 2001-03-04 23:20
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=405952&group_id=5470

Category: library
Group: None
>Status: Closed
Resolution: Accepted
Priority: 6
Submitted By: Anthony Baxter (anthony_baxter)
Assigned to: Guido van Rossum (gvanrossum)
Summary: cmd.py uses raw_input(); eats SIGCLD

Initial Comment:
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()


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-07-20 14:57

Message:
Logged In: YES 
user_id=6380

This was indeed documented.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2001-03-22 15:22

Message:
Logged In: YES 
user_id=6656

nag, nag.

the docs will get updated before 2.1, right? (not by me!)

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-03-22 13:59

Message:
Logged In: YES 
user_id=6380

OK, applied, ready for 2.1b2.

I changed the try/except to only cover the raw_input() call.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=405952&group_id=5470