*Synopsis*: Korn shell 93 sometimes mishandles return value of its child process
CR 6887363 changed on Oct 2 2009 by <User 1-5Q-6085>
=== Field ============ === New Value ============= === Old Value =============
Status 3-Accepted 1-Dispatched
====================== =========================== ===========================
*Change Request ID*: 6887363
*Synopsis*: Korn shell 93 sometimes mishandles return value of its child process
Product: solaris
Category: shell
Subcategory: korn93
Type: Defect
Subtype: Functionality
Status: 3-Accepted
Substatus:
Priority: 2-High
Introduced In Release:
Introduced In Build:
Responsible Engineer: <User 1-5Q-6085>
Keywords:
=== *Description* ============================================================
Following construction sometimes ends with wrong return value.
56 echo $op | grep rand 2>&1 >/dev/null
57 if [ $? = 0 ]; then
58 randseq="rand${SEED}"
59 else
60 randseq="seq"
61 fi
Sometimes, the given result is "rand..." even when there is no "rand" word in
$op. This can be demonstrated with TSufs/SnapShots/Func test case which
excercises shown code quite often.
As it happens only sometimes, I suppose there is an race-condition in handling
return value from a child process.
*** (#1 of 1): 2009-10-01 15:38:27 GMT+00:00 <User 1-I30-737>
*** Last Edit: 2009-10-02 12:52:46 GMT+00:00 <User 1-I30-737>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
=== *Additional Details* =====================================================
Targeted Release:
Commit To Fix In Build:
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also: 6886525
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5:
Hook6:
Program Management:
Root Cause:
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2009-10-01 15:38:26 GMT+00:00
Submitted By: <User 1-I30-737>
Status Changed Date Updated Updated By
3-Accepted 2009-10-02 16:03:12 GMT+00:00 <User 1-5Q-6085>
=== *Service Request* ========================================================
Impact: Significant
Functionality: Primary
Severity: 2
Product Name: storage-tests
Product Release: v3
Product Build:
Operating System: osol_2009.06
Hardware: x86
Submitted Date: 2009-10-01 15:38:27 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================