Bug 736195
Summary: | Apparent race condition when using pipes in KSH scripts. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Eric Sammons <esammons> | |
Component: | ksh | Assignee: | Michal Hlavinka <mhlavink> | |
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs | |
Severity: | urgent | Docs Contact: | ||
Priority: | urgent | |||
Version: | 5.7 | CC: | cww, dsulliva, kvolny, mfranc, ovasik, prc, svashisht | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | ksh-20100621-1.el5 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 739669 1243895 1243896 1243897 (view as bug list) | Environment: | ||
Last Closed: | 2012-02-21 05:51:07 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 668957, 739669 |
Description
Eric Sammons
2011-09-07 00:06:37 UTC
> When running ksh scripts on RHEL 5 (and RHEL 6) multiple processes
> are reported running when $(ps -ef |grep $BNAME|grep -v grep |wc -l).
> Expect only "1" to be returned but often times see 2+ returned.
Are you sure with that? I can reproduce this in RHEL 5, but it works for me in RHEL 6 (both ksh-20100621-6.el6.x86_64 = rhel-6.1 and update-to-be ksh-20100621-9.el6.x86_64).
I've tested all versions I have and it seems fixed between 2010-05-27 (last broken) and 2010-06-21 (first working) which is scheduled as update in rhel 5.8. So please retest RHEL6 version.
*** Bug 709774 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0159.html |