*Synopsis*: *ksh93* causes parent shell to die when child shell is suspended

CR 6672350 changed on Jan 16 2009 by <User 1-5Q-3253>

=== Field ============ === New Value ============= === Old Value =============

Integrated in Build    snv_106                                                
Status                 10-Fix Delivered            8-Fix Available            
====================== =========================== ===========================

     
*Change Request ID*: 6672350

*Synopsis*: *ksh93* causes parent shell to die when child shell is suspended

  Product: solaris
  Category: shell
  Subcategory: korn93
  Type: Defect
  Subtype: 
  Status: 10-Fix Delivered
  Substatus: 
  Priority: 2-High
  Introduced In Release: solaris_nevada
  Introduced In Build: snv_72
  Responsible Engineer: <User 1-5Q-5151>
  Keywords: no-s10, oss-request, oss-sponsor

=== *Description* ============================================================
I have a script that starts a sub-shell.  When I suspend the subshell, to return
to the login shell, often the login shell logs out.  Sometimes the login shell
hangs with a message saying I have stopped jobs, and then I can't type into the
window.  (In both cases I'm using rlogin or ssh to login.)

/bin/ksh doesn't have this problem.

If I use /bin/ksh for the login shell, and /bin/ksh93 for the sub-shell, the
problem doesn't occur.

This seems like another job control / tty modes race condition.

*** (#1 of 2): 2008-03-06 21:53:18 GMT+00:00 <User 1-5Q-7624>

After some experimentation, I found the key to reproducing the problem:

$ kk() { "$@"; }
$ echo $SHELL
/bin/ksh93
$ kk $SHELL
$ kill -STOP $$

After executing the above, you'll be back in the parent shell.
Hit CR and the parent shell will die.

*** (#2 of 2): 2008-04-15 20:12:54 GMT+00:00 <User 1-5Q-7624>


=== *Public Comments* ========================================================

=== *Workaround* =============================================================

=== *Additional Details* =====================================================
        Targeted Release: solaris_nevada
        Commit To Fix In Build: snv_106
        Fixed In Build: snv_106
        Integrated In Build: snv_106
        Verified In Build: 
  See Also: 6437624, 6619428
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: no-NAS
        Hook4: 
        Hook5: <email address omitted>
        Hook6: <email address omitted>
  Program Management: 
  Root Cause: Other - see Research Activity
  Fix Affects Documentation: No
  Fix Affects Localization: No

=== *History* ================================================================
        Date Submitted: 2008-03-06 21:53:18 GMT+00:00
        Submitted By: <User 1-5Q-7624>

        Status Changed    Date Updated                  Updated By
        3-Accepted        2008-06-17 21:35:54 GMT+00:00 <User 1-5Q-5151>
        6-Fix Understood  2008-10-02 20:42:05 GMT+00:00 <User 1-5Q-5151>
        7-Fix in Progress 2008-12-22 07:37:18 GMT+00:00 <User 1-5Q-5151>
        8-Fix Available   2008-12-27 23:21:49 GMT+00:00 <User 1-5HNZ8F>
        10-Fix Delivered  2009-01-16 03:26:11 GMT+00:00 <User 1-5Q-3253>


=== *Service Request* ========================================================
        Impact: Significant
        Functionality: Secondary
        Severity: 3
        Product Name: solaris
        Product Release: solaris_nevada
        Product Build: 
        Operating System: snv_79b
        Hardware: ultrasparc
        Submitted Date: 2008-03-06 21:53:18 GMT+00:00


=== *Multiple Release (MR) Cluster* - 0 ======================================


Reply via email to