Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-55725

RHEL10: While piping or redirecting information through 'more' and pressing CTRL-C the INT signal is not getting received

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-10.0
    • rhel-10.0.beta
    • util-linux
    • None
    • Yes
    • Important
    • Regression
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      While piping or redirecting information through 'more' and pressing CTRL-C the INT signal is not getting received by 'more', the signal gets to the complete process group except more. This seems to be a change in behavior from RHEL 7 and RHEL 8.
      The same happens on Fedora. It does not happens with 'less'.

      Please provide the package NVR for which bug is seen:

      util-linux-core-2.37.4-15.el9

      util-linux-core-2.38.1-4.fc38

      How reproducible:

      Always

      Steps to reproduce

      1. With any text file that has enough data to be paginated run:
      2. grep . /var/log/messages | more
        or
      3. more < /var/log/messages
      4. On first page press CTRL-C

      Expected results

      1. All group processes (if any) including 'more' gets interrupted.

      Actual results

      1. Press 'q' to exit as nothing happens on more (actually grep or any other process in the process group gets the signal and behaves accordingly)

      Additional information

      [root@r93 ~]# strace -Tttvf -e "rt_sigprocmask,rt_sigaction" /usr/bin/more <<<""
      18:50:30.649547 rt_sigaction(SIGTSTP, {sa_handler=SIG_IGN, sa_mask=[TSTP], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7fa06a454db0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 <0.000026>
      18:50:30.650138 rt_sigprocmask(SIG_BLOCK, [INT QUIT CONT TSTP WINCH], NULL, 8) = 0 <0.000028>18:50:30.651120 +++ exited with 0 +++
      

       

              rhn-engineering-kzak Karel Zak
              rhn-support-jgamba Juan Gamba
              Karel Zak Karel Zak
              Radka Brychtova Radka Brychtova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: