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

Due to a change requested by <User 1-5Q-5151>,
<User 1-5Q-5151> is now the responsible engineer for:

CR 6672350 changed on Oct 2 2008 by <User 1-5Q-5151>

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

Evaluation             New Note                                               
Hook 5                 <email address omitted>                                
Hook 6                 <email address omitted>                                
Introduced in Build    snv_72                                                 
Introduced in Release  solaris_nevada                                         
Keyword                oss-request                                            
Keyword                oss-sponsor                                            
Responsible Engineer   <User 1-5Q-5151>                                       
Status                 6-Fix Understood            3-Accepted                 
Synopsis               *ksh93* causes parent she.. ksh93 causes parent shell..
Targeted Release       solaris_nevada                                         
====================== =========================== ===========================


*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: 6-Fix Understood
  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>


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

=== *Additional Details* =====================================================
        Targeted Release: solaris_nevada
        Commit To Fix In Build: 
        Fixed In Build: 
        Integrated In Build: 
        Verified In Build: 
  See Also: 
  Duplicate of: 
  Hooks:
        Hook1: 
        Hook2: 
        Hook3: no-NAS
        Hook4: 
        Hook5: <email address omitted>
        Hook6: <email address omitted>
  Program Management: 
  Root Cause: 
  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>


=== *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