Bug 594536 - Extra fork when tcsh processes backquotes
Extra fork when tcsh processes backquotes
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: tcsh (Show other bugs)
5.5
All Linux
high Severity high
: rc
: ---
Assigned To: Jaromír Končický
BaseOS QE - Apps
: Patch, ZStream
Depends On:
Blocks: 640251 673556 688170 689383
  Show dependency treegraph
 
Reported: 2010-05-20 19:42 EDT by Bryan Mason
Modified: 2014-07-01 18:55 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 689383 (view as bug list)
Environment:
Last Closed: 2013-09-23 07:04:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Proposed Patch (701 bytes, patch)
2010-05-20 19:45 EDT, Bryan Mason
no flags Details | Diff

  None (edit)
Description Bryan Mason 2010-05-20 19:42:51 EDT
Description of problem:

    When tcsh-6.14 performs command substitution within backquotes, an
    extra fork() is performed.  this can cause issues when a command
    run within the backquotes wants to find the PID of the main tcsh
    process from which it was fork()ed.

Version-Release number of selected component (if applicable):

    tcsh-6.14-17.el5

How reproducible:

    100%

Steps to Reproduce:

    1. Run "echo `pstree -p $$`"
  
Actual results:

    tcsh(4343)---tcsh(4344)---pstree(4345)

    (note that tcsh forks twice)
    
Expected results:

    tcsh(4346)---pstree(4347)

    (note that tcsh only forks once to run pstree)

Additional info:

    This has been reported and accepted upstream:

        http://mx.gw.com/pipermail/tcsh-bugs/2010-May/000679.html

    This was not a problem with tcsh-6.13
Comment 1 Bryan Mason 2010-05-20 19:45:07 EDT
Created attachment 415541 [details]
Proposed Patch

This patch assumes that the patch in Bug 531353 has already been applied.

Note You need to log in before you can comment on or make changes to this bug.