Bug 708909

Summary: ksh doesn't correctly resume a suspended process when using a pipe
Product: [Fedora] Fedora Reporter: Stefan Krüger <stadtkind2>
Component: kshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: mhlavink
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: ksh-20110505-2.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-21 23:52:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Krüger 2011-05-30 05:51:38 UTC
Description of problem:
Ksh doesn't seem to correctly resume a suspended process that pipes into another.

Version-Release number of selected component (if applicable):
ksh-20110505-1.fc14.i686

How reproducible:
Happens every time.

Steps to Reproduce:
1. diff /etc/services /etc/inittab | less
2. Press '^Z'
3. Type 'fg' to resume
  
Actual results:
"diff /etc/services /etc/inittab | less"
And then nothing more, no output from diff, pressing 'q' to exit less doesn't work, ^C just sends a SIGSTOP?! You have to kill diff/less (kill pid or kill %1) to get rid of it.

Expected results:
The output from the diff inside less once resumed via 'fg'

Additional info:

Comment 1 Michal Hlavinka 2011-05-31 07:22:23 UTC
Thanks for reporting this, I'm able to reproduce it

Comment 2 Fedora Update System 2011-06-09 13:16:57 UTC
ksh-20110505-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/ksh-20110505-2.fc15

Comment 3 Fedora Update System 2011-06-09 13:17:12 UTC
ksh-20110505-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/ksh-20110505-2.fc14

Comment 4 Fedora Update System 2011-06-11 04:27:29 UTC
Package ksh-20110505-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ksh-20110505-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/ksh-20110505-2.fc15
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2011-06-21 23:52:20 UTC
ksh-20110505-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2011-06-21 23:52:42 UTC
ksh-20110505-2.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.