Bug 1886785

Summary: mksh logs out if a trap on EXIT is configured
Product: Red Hat Enterprise Linux 7 Reporter: Welterlen Benoit <bwelterl>
Component: mkshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED NEXTRELEASE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.8CC: manjusha.balakrishnan
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-20 13:47:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Welterlen Benoit 2020-10-09 11:53:17 UTC
Description of problem:
If we trap the EXIT signal to write logout for example, mksh will logout on any CtlC interruption.

Version-Release number of selected component (if applicable):
mksh-46-8.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. mksh
2. trap "echo 'logout'" 0
3. CtrlC

Actual results:
Logout 

Expected results:
Just interrupt the command if running

Additional info:
Fixed in RHEL8

Comment 3 Michal Hlavinka 2020-10-20 13:47:38 UTC
Red Hat Enterprise Linux version 7 entered the Maintenance Support Phase. In this phase only qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. Other errata advisories may be delivered as appropriate.

This bug has been reviewed by Engineering representative and does not meet the inclusion criteria for Maintenance Support 2 Phase.

For more information about Red Hat Enterprise Linux Lifecycle, please see https://access.redhat.com/support/policy/updates/errata/

This issue is fixed in Red Hat Enterprise Linux version 8, closing as NEXTRELEASE